Hello everybody, I am new to this group but have been developing a JSP page which reads in an xml source file. I am also using Xtags taglib for XML parsing and processing. A snippet of the xml source looks like below:...
INPUT.XML <?xml version="1.0" ?> <Task SchemaVersion="2.0" Type="ResponseTask" xmlns="http://www.lexign.com/schemas/flow"> <ApplicationData> <DataItemString ID="4100" Name="EMPLOYEENAME" Access="Write" Description="Employees name">Joe Bloggs </DataItemString> <DataItemString ID="4200" Name="ISIDINITIATOR" Access="Write" Description="ISID">1031 </DataItemString> </ApplicationData> </Task> The problem I am having is the xml file is only successfully read when the xmlns attribute of the Task element is removed however the application that creates this xml file cannot allow this so the xmlns attribute has to stay. The JSP file that reads it has the following structure in the head ...(very typical) XMLReaderApp.jsp <?xml version="1.0" encoding="UTF-8"?> <html> <%@ taglib uri="http://jakarta.apache.org/taglibs/xtags-1.0" prefix="xtags" %> <head> <% String TXNfile = "INPUT.XML"; %> <xtags:parse uri=TXNfile/> ..etc.. I am aware this has to do with a namespace clash and have looked into various resources but to no avail. Could someone please shed some light on this issue. Thanks a bundle in advance. Gavin. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
