XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 22nd, 2003, 03:31 AM
NAK_NEO NAK_NEO is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 5 NAK_NEO User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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>

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > repost: setting proper namespacing in XML Schema


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway