Hello !

The following line parses a fragment of a xml-document:

EhdHeaderTyp head = EhdHeaderTyp.Factory.parse(xml);

I get the error: org.apache.xmlbeans.XmlException: error: Use of undefined 
namespace prefix: ehd

here the xml-fragment to parse:

<ehd:header>
  <ehd:id RT="1"/> 
  <ehd:document_type_cd V="VDX" /> 
  <ehd:service_tmr V="2004-07-31..2004-09-30" /> 
  <ehd:origination_dttm V="2005-04-06" /> 
  <ehd:provider /> 
</ehd:header>

What is the best way do declare the namespace and/or its prefix to the parser 
without manipulating the xml itself ?

Regards, Frank

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to