AlexTekTip
Programmer
I have an xml data document that I need to parse that involves CDATA sections. How do I go about it? I need to specifically parse the two CDATA section that currently hold "TEST" in them (See below).
Thank YOU!!
<?xml version="1.0" encoding="ISO-8859-1" ?>
- <Report cgidir="/cgi-lawson/" executable="getattachrec.exe" productline="QAS" filename="APINVOICE" token="Token" keynbr="KeyNbr">
- <QueryBase exepath="/cgi-lawson/writeattach.exe">
- <![CDATA[ _OUT=XML&_PDL=QAS&_FN=APINVOICE&_IN=APISET1&
]]>
</QueryBase>
- <WinTitle>
- <![CDATA[ <NULL>
]]>
</WinTitle>
- <ParentRec>
- <QueryVal>
- <![CDATA[ _AK=yMjh
]]>
</QueryVal>
- <RecAtt Action="Add">
- <AttName>
- <![CDATA[ Add Attach
]]>
</AttName>
- <QueryVal>
- <![CDATA[ K1=9000&K2= 55413&K3=ASWTEST101504C&K4=000&K5=0000&_DATA=TRUE&_OPM=M&
]]>
</QueryVal>
</RecAtt>
- <RecAtt Action="">
- <AttName>
- <![CDATA[ TEST
]]>
</AttName>
- <AttData>
- <![CDATA[ TEST
]]>
</AttData>
- <QueryVal>
- <![CDATA[ K1=9000&K2= 55413&K3=ASWTEST101504C&K4=000&K5=0000&_ATYP=C&_AUDT=N&_KS=zz&_OPM=A&_DATA=TRUE&
]]>
</QueryVal>
</RecAtt>
</ParentRec>
- <ErrMsg ErrNbr="0" ErrStat="MSG">
- <![CDATA[ Success
]]>
</ErrMsg>
</Report>
Thank YOU!!
<?xml version="1.0" encoding="ISO-8859-1" ?>
- <Report cgidir="/cgi-lawson/" executable="getattachrec.exe" productline="QAS" filename="APINVOICE" token="Token" keynbr="KeyNbr">
- <QueryBase exepath="/cgi-lawson/writeattach.exe">
- <![CDATA[ _OUT=XML&_PDL=QAS&_FN=APINVOICE&_IN=APISET1&
]]>
</QueryBase>
- <WinTitle>
- <![CDATA[ <NULL>
]]>
</WinTitle>
- <ParentRec>
- <QueryVal>
- <![CDATA[ _AK=yMjh
]]>
</QueryVal>
- <RecAtt Action="Add">
- <AttName>
- <![CDATA[ Add Attach
]]>
</AttName>
- <QueryVal>
- <![CDATA[ K1=9000&K2= 55413&K3=ASWTEST101504C&K4=000&K5=0000&_DATA=TRUE&_OPM=M&
]]>
</QueryVal>
</RecAtt>
- <RecAtt Action="">
- <AttName>
- <![CDATA[ TEST
]]>
</AttName>
- <AttData>
- <![CDATA[ TEST
]]>
</AttData>
- <QueryVal>
- <![CDATA[ K1=9000&K2= 55413&K3=ASWTEST101504C&K4=000&K5=0000&_ATYP=C&_AUDT=N&_KS=zz&_OPM=A&_DATA=TRUE&
]]>
</QueryVal>
</RecAtt>
</ParentRec>
- <ErrMsg ErrNbr="0" ErrStat="MSG">
- <![CDATA[ Success
]]>
</ErrMsg>
</Report>