|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Setting proper namespace in Schema for validating XML
Hello Ladies and Gentlemen,
I have taken on learning XML, XSLT, and XSchema and came across a small obstacle. I have written up a schema document to validate the XML files that I am receiving but I am having trouble reasearching how to indicate the proper namespacing in the schema. Can someone please give me an example of what the schema would look like to validate the attached XML example? I have created a test xml document. I already know how to setup the restrictions of each of the elements, etc. but I don't know how to get the namespaces right. Hope it's not too much trouble and thank you in advanced! ************************************************* <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP-ENV:Header xmlns:rfcprop="urn:sap-com:document:sap:rfc roperties"><saptr:From xmlns:saptr="urn:sap-com:document:sap:transport">BC1</saptr:From> <saptr:To xmlns:saptr="urn:sap-com:document:sap:transport">BC2</saptr:To> </SOAP-ENV:Header> <SOAP-ENV:Body> <rfc:Z_SEND_DATA xmlns:rfc="urn:sap-com:document:sap:rfc:functions"> <EIA_URL> </EIA_URL> <ABC> <ELEM_1></ELEM_1> <ELEM_2></ELEM_2> <ELEM_3></ELEM_3> <ELEM_WITH_CHILD_1> <item> <CHILD_1></CHILD_1> <CHILD_2></CHILD_2> </item> </ELEM_WITH_CHILD_1> <ELEM_WITH_CHILD_2> <item> <CHILD_1></CHILD_1> <CHILD_2></CHILD_2> </item> </ELEM_WITH_CHILD_2> </ABC> </rfc:Z_SEND_DATA> </SOAP-ENV:Body> </SOAP-ENV:Envelope> |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > Setting proper namespace in Schema for validating XML |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|