13.07.2015 Views

Introduction to XML and native XML technologies on the IBM ...

Introduction to XML and native XML technologies on the IBM ...

Introduction to XML and native XML technologies on the IBM ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

From Zero <str<strong>on</strong>g>to</str<strong>on</strong>g> z Hero - z/OS und <str<strong>on</strong>g>XML</str<strong>on</strong>g> - Das perfekte DuoBuffers usages <str<strong>on</strong>g>and</str<strong>on</strong>g> flow in <str<strong>on</strong>g>XML</str<strong>on</strong>g> System Services• Every initializati<strong>on</strong> has been d<strong>on</strong>e <str<strong>on</strong>g>and</str<strong>on</strong>g> <strong>the</strong>parse can takeplace• For <strong>the</strong> moment, assume that validati<strong>on</strong>is not required.• On <strong>the</strong> left side a <str<strong>on</strong>g>XML</str<strong>on</strong>g> string is provided<str<strong>on</strong>g>to</str<strong>on</strong>g> <strong>the</strong> parse.• In this example, assume that <strong>the</strong>complete document is <str<strong>on</strong>g>to</str<strong>on</strong>g>o large <str<strong>on</strong>g>to</str<strong>on</strong>g> beread in<str<strong>on</strong>g>to</str<strong>on</strong>g> a single buffer.• The reader functi<strong>on</strong> of <strong>the</strong> applicati<strong>on</strong> fillsa buffer <str<strong>on</strong>g>and</str<strong>on</strong>g> advances this as parsingprogresses.• Logically, <strong>the</strong> reader slides a bufferwindow over <strong>the</strong> <str<strong>on</strong>g>XML</str<strong>on</strong>g> string.• The address of <strong>the</strong> positi<strong>on</strong> of <strong>the</strong> windowis passed <str<strong>on</strong>g>to</str<strong>on</strong>g> z/OS <str<strong>on</strong>g>XML</str<strong>on</strong>g> System Servicesroutine gxlprs(), which is <strong>the</strong> parsingroutine. A• lso passed <str<strong>on</strong>g>to</str<strong>on</strong>g> gxlprs() is <strong>the</strong> address ofan output buffer where <strong>the</strong> results ares<str<strong>on</strong>g>to</str<strong>on</strong>g>red.© 2012 <strong>IBM</strong> Corporati<strong>on</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!