# RXS_ParseDomToXml()
This subprocedure retrieves the raw XML from a specific XPath.
## Subprocedure Prototype
| Field | Description |
|---|---|
| ` D RXS_ParseDomToXml... D PR Extproc('RXS_ParseDomToXml') Opdesc D Like(RXS_Var16Mv_t) D Rtnparm` | Returns the XML subsection retrieved by the specified XPath. |
| ` D pXPath Like(RXS_Var8Kv_t) Const D Options(*Varsize)` | XPath used to determine which nodes are retrieved into the RXS_ParseDomDS_t return data structure. |
| ` D pDS LikeDS(RXS_ParseDomDS_t) D Options(*Varsize)` | RXS_ParseDomDS_t data structure, e.g. the "parent" structure. |
## Example Code
### Ex. 1
```rpgle
**FREE
// This example demonstrates using RXS_ParseDomToXml to retrieve a section
// of a parsed DOM structure as XML. It's important to call RXS_CloseDom once
// DOM parsing has been completed to free memory used by the DOM parser.
Ctl-Opt ActGrp(*New) BndDir('RXSBND');
/COPY QRPGLECPY,RXSCB
Dcl-Ds RootDomDS LikeDS(RXS_ParseDomDS_t);
Dcl-Ds BookDomDS LikeDS(RXS_ParseDomDS_t);
Dcl-S XPath Like(RXS_Var8Kv_t);
Dcl-S Data Like(RXS_Var1Kv_t);
Dcl-S x Uns(10);
Dcl-S gXML Like(RXS_Var64Kv_t);
gXML = ''
+ '