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 September 9th, 2003, 05:05 PM
dfjelstul dfjelstul is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 1 dfjelstul User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Relative Namespace in XML/XSD

I have the following XML document that validates fine using the absolute paths for the namespaces.

<?xml version="1.0" encoding="UTF-8"?>
<Inventory xsi:schemaLocation="http://www.acme.com/schema URL" xmlns="http://www.acme.com/schema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

However, how do I make the namespaces relative to the location of the XML document? The XML documents are located in /application/files and the schemas (.xsd) are located in /application/schema. I tried to format the header as

<?xml version="1.0" encoding="UTF-8"?>
<Inventory xsi:schemaLocation="../schema ../schema/inventory.xsd" xmlns="../schema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

But that doesn't work. Any thoughts?

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > Relative Namespace in XML/XSD


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 4 hosted by Hostway