dom4j issue

Hi all,

I have a xml string which contains the following tag-

<billpay/addglobalpayee xmlPath="config/appconfig" name="billpay/addglobalpayee">

<sometag/>

</billpay/addglobalpayee>

When I try to read the xml(string) using SAXReader and try to capture it in a dom4j document using

Document doc = reader.read(new StringReader(data));

where data is the xml in a string format,

I get the following error.

org.dom4j.DocumentException: Error on line 179 of document : Element type"billpay" must be followed by either attribute specifications,">" or"/>". Nested exception: Element type"billpay" must be followed by either attribute specifications,">" or llpaybillpay"/>".

Can you please help me how to solve this issue?

[1051 byte] By [sudarsona] at [2007-11-26 15:14:55]
# 1
No, you don't have an XML string. That isn't well-formed XML because element names are not allowed to include the "/" character. To solve the issue, change whatever is generating that data so that it generates well-formed XML.
DrClapa at 2007-7-8 9:06:27 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...