Hi
I am working on XML Parsing using Xerces 2.6 C++ version. DTD is using some namespaces such as pam, cnp, dc. In xml file tags are specified as <Namespace:Ta g Name>.
For example: <dc:identifier> 00038520_0104_1 0</dc:identifier>
<cnp:articlePag es>
<cnp:pageNumber >190</cnp:pageNumber>
<cnp:pageNumber >191</cnp:pageNumber>
</cnp:articlePage s>
When i try to parse such xml using Xerces Parser, it report errors regarding namespace. Following are examples of such errors:
Fatal Error: The prefix 'pam' has not been mapped to any URI at para: 4, column: 14
Fatal Error: The prefix 'pam' has not been mapped to any URI at para: 5, column: 31
Fatal Error: The prefix 'dc' has not been mapped to any URI at para: 7, column: 16
Fatal Error: The prefix 'prism' has not been mapped to any URI at para: 8, column: 21
Fatal Error: The prefix 'cnp' has not been mapped to any URI at para: 9, column: 19
Is there any property or feature in Xerces wich can be set or modified, so that this xml can be parsed successfully.
I tried XMLSpy, and it is generating any error.
Thanks in advance.
Regards,
Anjali.
I am working on XML Parsing using Xerces 2.6 C++ version. DTD is using some namespaces such as pam, cnp, dc. In xml file tags are specified as <Namespace:Ta g Name>.
For example: <dc:identifier> 00038520_0104_1 0</dc:identifier>
<cnp:articlePag es>
<cnp:pageNumber >190</cnp:pageNumber>
<cnp:pageNumber >191</cnp:pageNumber>
</cnp:articlePage s>
When i try to parse such xml using Xerces Parser, it report errors regarding namespace. Following are examples of such errors:
Fatal Error: The prefix 'pam' has not been mapped to any URI at para: 4, column: 14
Fatal Error: The prefix 'pam' has not been mapped to any URI at para: 5, column: 31
Fatal Error: The prefix 'dc' has not been mapped to any URI at para: 7, column: 16
Fatal Error: The prefix 'prism' has not been mapped to any URI at para: 8, column: 21
Fatal Error: The prefix 'cnp' has not been mapped to any URI at para: 9, column: 19
Is there any property or feature in Xerces wich can be set or modified, so that this xml can be parsed successfully.
I tried XMLSpy, and it is generating any error.
Thanks in advance.
Regards,
Anjali.
Comment