You need to sign in to do that
Don't have an account?
Help needed to parse the XML data
Hi,
I would like to parse the xml data as like below:
<AD_Client_ID><Label><![CDATA[Tenant]]></Label><Value>11</Value><Info><![CDATA[GardenWorld]]></Info><UniqueID><![CDATA[GardenWorld]]></UniqueID></AD_Client_ID><AD_Language><Label><![CDATA[Language]]></Label><Value><![CDATA[en_US]]></Value></AD_Language>
I wanted to parse this type of xml using XML DOM parser and I have to get the value from <Info><![CDATA[GardenWorld]]></Info> and <Value><![CDATA[en_US]]></Value>.
Please suggest me to parse the same.
If anyone of you have other idea to parse the above said xml, please inform me as early as possible. This is my urgent requirement. I hope for the suggestion or some sample code.
Thanks in advance.
Look at following link. It has an example as well. It's from Apex Language reference.
XMLStreamReader
Hi,
Use the setCoalescing function (set to true) of XmlStreamReader.
If you specify true, text is returned in a single block, from a start element to the first end element or the next start element, whichever comes frst. If you specify it as false, the parser may return text in multiple blocks.
Regards,
AcMEGx