Re:Newbie question , the processing instruction target matching [xX][mM][l][L] is not allowed

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re:Newbie question , the processing instruction target matching [xX][mM][l][L] is not allowed

angela rodrix
Thanks Eric for the response !! In my case, i never placed my jsp inside xforms-jsp.I had deployed and placed the same inside
webapps/jsp-examples/cal folder of external tomcat server.
here is my jsp code :
 
<[hidden email] import="org.dom4j.io.SAXReader"%>
<[hidden email] import="org.dom4j.Document"%>
<[hidden email] import="java.io.*"%>
<[hidden email] import="java.util.*"%>
<[hidden email] import="java.lang.*"%>
<[hidden email] import="org.dom4j.Element"%>
<[hidden email] import="org.dom4j.ElementPath"%>
<[hidden email] import="org.dom4j.ElementHandler"%>
<[hidden email] import="org.dom4j.DocumentException"%>
<[hidden email] import="org.dom4j.io.DOMReader"%>
<[hidden email] import="org.orbeon.oxf.common.ValidationException"%>
 
<%int k;
int aBuffSize = 1123123;
String StringFromWS="";
byte buff[] = new byte[aBuffSize];
ByteArrayOutputStream xOutputStream = new ByteArrayOutputStream(aBuffSize);
while ( ( k=request.getInputStream().read(buff) ) != -1)
xOutputStream.write(buff,0,k);
StringFromWS = StringFromWS + xOutputStream.toString("UTF-8");
System.out.println(StringFromWS);
out.println(StringFromWS);
//System.out.println(org.apache.commons.lang.StringUtils.replace(StringFromWS ,"<", "&lt;"));
//out.println(org.apache.commons.lang.StringUtils.replace(StringFromWS ,"<", "&lt;"));
InputStream input =new ByteArrayInputStream(StringFromWS.getBytes("UTF-8"));
System.out.println("3.InputStream for parsing ---->"+input);
SAXReader reader = new SAXReader();
Document doc = reader.read(input);
System.out.println("4.document for parsing ---->"+doc);
Element root = doc.getRootElement();
for ( Iterator i = root.elementIterator(); i.hasNext(); )
{Element element = (Element) i.next();
System.out.println("Element Name:"+element.getQualifiedName() );
System.out.println("Element Value:"+element.getText());
}
%>
Kindly guide me with the probable solution.
Regards,
Angela
 


Here's a new way to find what you're looking for - Yahoo! Answers
Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it NOW

--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws