Sign In/My Account | View Cart  
advertisement

Article:
 XML Source Highlighting
Subject: Element Not Bound Error
Date: 2005-08-03 02:45:16
From: PieterVanGorp

Hi,
could you please help me past this error?


Thanks in advance,
-- Pieter


[Fatal Error] file:Traceability.html:102:16: The prefix "highlight" for element "highlight:xml" is not bound.
Exception in thread "main" org.amberarcher.xml.tool.highlight.HighlightException: org.xml.sax.SAXParseException: The prefix "highlight" for element "highlight:xml" is not bound.
at org.amberarcher.xml.tool.highlight.HighlightEngine.highlight(HighlightEngine.java:61)
at org.amberarcher.xml.tool.highlight.Main.main(Main.java:45)
Caused by: org.xml.sax.SAXParseException: The prefix "highlight" for element "highlight:xml" is not bound.
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at org.amberarcher.xml.tool.highlight.HighlightEngine.highlight(HighlightEngine.java:45)
... 1 more


Previous Message Previous Message   Next Message No Next Message


Titles Only Titles Only Newest First
  • Element Not Bound Error
    2005-08-03 17:09:05 Kyle Downey [Reply]

    You need to declare the namespace, e.g. "xmlns:highlight," in your source document.

    • Element Not Bound Error
      2005-11-05 21:17:11 aarun_Jones [Reply]

      I've declared the namespace declaration, but still I et the same error.
      I am using xerces SAX parser and I've set the required properties(schemalocation and noNameSpaceSchemaLocation) and feature (validation/dynamic) set.
      the error FatalError :1:193: The prefix "n" for element "n:myReq" is not bound.


      I believe it is not finding my xsd file. How do I specify that in the properties and where in the directory structure should I keep the actual myReq.xsd file?


      I really appreciate your help!
      thanks,
      Aarun


Sponsored By: