Hi, All:
I am quite new to the XML and have the following problem:
I have the sample xml to read.
when the program read back the above log, it has the name space associated with it
what attribute to set for the XercesDOMParser so that the namespace is not automatically append while parsing?
I am quite new to the XML and have the following problem:
I have the sample xml to read.
Code:
<lr:LogRecordBody>
<lr:EventID>9</lr:EventID>
<lr:EventSubType scope="http://www.smpte-ra.org/430-5/2007/SecurityLog/#EventTypes">CPLCheck</lr:EventSubType>
<lr:contentId>urn:uuid:4c4d6f56-6734-4f37-94a5-fb93cce15128</lr:contentId>
<lr:Parameters>
<dcml:Parameter>
<dcml:Name>SignerID</dcml:Name>
<dcml:Value xsi:type="ds:DigestValueType">BYWKLV0P9zwzo52Mw0ieHlj/9k8=</dcml:Value>
</dcml:Parameter>
</lr:Parameters>
</lr:LogRecordBody>
when the program read back the above log, it has the name space associated with it
Code:
<lr:LogRecordBody [I]xmlns:lr="funny">[/I]
<lr:EventID>9</lr:EventID>
<lr:EventSubType scope="http://www.smpte-ra.org/430-5/2007/SecurityLog/#EventTypes">CPLCheck</lr:EventSubType><lr:contentId>urn:uuid:4c4d6f56-6734-4f37-94a5-fb93cce15128</lr:contentId>
<lr:Parameters>
<dcml:Parameter xmlns:dcml="http://www.smpte-ra.org/schemas/433/2008/dcmlTypes"><lr:LogRecordBody xmlns:lr="funny"><lr:EventID>9</lr:EventID><lr:EventSubType scope="http://www.smpte-ra.org/430-5/2007/SecurityLog/#EventTypes">CPLCheck</lr:EventSubType><lr:contentId>urn:uuid:4c4d6f56-6734-4f37-94a5-fb93cce15128</lr:contentId><lr:Parameters><dcml:Parameter xmlns:dcml="http://www.smpte-ra.org/schemas/433/2008/dcmlTypes"><dcml:Name>SignerID</dcml:Name><dcml:Value xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ds:DigestValueType">BYWKLV0P9zwzo52Mw0ieHlj/9k8=</dcml:Value></dcml:Parameter></lr:Parameters></lr:LogRecordBody>
<dcml:Name>SignerID</dcml:Name>
<dcml:Value xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ds:DigestValueType">BYWKLV0P9zwzo52Mw0ieHlj/9k8=</dcml:Value>
</dcml:Parameter>
</lr:Parameters>
</lr:LogRecordBody>
Comment