XML Xerces 2.6 Namespace problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • anjalimahey
    New Member
    • Oct 2006
    • 3

    XML Xerces 2.6 Namespace problem

    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.
  • dorinbogdan
    Recognized Expert Contributor
    • Feb 2007
    • 839

    #2
    Hi,

    Did you succeed to solve your problem?
    If not, please let me know.
    If yes, feel free to share it, to help other members with similar questions.

    Thanks,
    Dorin.

    Comment

    Working...