Hi All,

Hope somebody can help.

I've got an XML file which is similar to XHTML but also has jps tags ( c:if
test="blah...") embedded. When I do my transformation I get:

org.dom4j.DocumentException: Error on line 439 of document:
The prefix "c" for element "c:if" is not bound. Nested exception: The prefix "c"
for element "c:if" is not bound.
    at org.dom4j.io.SAXReader.read(SAXReader.java:482)
blah...

Below is a snippet from my method that does the conversion from a string into a
Document object..


286  // Read file as a string
287  String fileAsString = FileUtils.readFileToString(mySourceFile,"utf-8");
288
289  // Convert to a Document object
290  Document srcDocument = DocumentHelper.parseText(fileAsString);




My source XML looks a little like this..


438  
439      
440          do something
441      
442  



Anybody got any ideas?

Many thanks,

Adam.


-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
dom4j-user mailing list
dom4j-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to