Home » Developer & Programmer » JDeveloper, Java & XML » XML Validation (merged 4) (Oracle, 10g, Windows xp)
XML Validation (merged 4) [message #553165] Wed, 02 May 2012 07:57 Go to next message
Messages: 68
Registered: May 2010
Location: Trivendrum

I have registered the xsd using "dbms_xmlschema.registerschema". After that i am getting the xml file.

We can validate the xml file by creating one oracle directory for that XML and paste the xml file inside that directory and using below query we can validate.
SELECT SYS.XMLTYPE (BFILENAME (p_i_xml_dir, p_i_xml_file_name),
                          NLS_CHARSET_ID ('UTF16')
                         ).isschemavalid (p_i_xml_file_name)

But, Is it possible to check the received xml file valid or not without creating oracle directory for that xml file.

Thanks in Advance

Re: XML Validation (merged 4) [message #553175 is a reply to message #553165] Wed, 02 May 2012 08:26 Go to previous message
Messages: 638
Registered: August 2011
Location: chennai
Senior Member

Can you post the code ,how did you registered xsd in schema..
Previous Topic: XML Error LPX-00283: document encoding is UTF-8-based but default input encoding is not
Next Topic: JAVA connection to DATABASED
Goto Forum:

Current Time: Wed Apr 24 09:54:00 CDT 2024