|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
repost: setting proper namespacing in XML Schema
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:rfcroperties"> <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 > repost: setting proper namespacing in XML Schema |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|