473,413 Members | 1,737 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,413 software developers and data experts.

Query Regd Namespace

Hi All,
What is the importance of namespace in XML


Thanks,
Aarthi
Aug 30 '06 #1
2 1484
Dormilich
8,658 Expert Mod 8TB
see Namespaces in XML 1.0 (Second Edition)
Jan 22 '09 #2
jkmyoung
2,057 Expert 2GB
Simply, it allows you to distinguish data from multiple sources so that you can treat them differently. eg, the 2 record elements are different:
Expand|Select|Wrap|Line Numbers
  1. <table xmlns="www.query.com">
  2.   <record>
  3.     <id>14</id>
  4.     <value>3252</value>
  5.   </record>
  6. </table>
  7.  
  8. <record xmlns="www.music.org">
  9.   <title>Please Hammer Don't Hurt 'Em</title>
  10.   <artist>MC Hammer</artist>
  11. </record>
  12.  
Jan 22 '09 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Howard | last post by:
Hi, I am using a very simple xslt file to get info from an xml document. The problem seems to me to be that the xml doc uses a namespace, and I don't know how to set up my xslt to recognize it...
1
by: Scot NS Curry | last post by:
I have the following XML document. <?xml version="1.0" encoding="utf-16"?> <xd:xmldiff version="1.0" srcDocHash="6067335156532207495" options="None" fragments="no"...
1
by: Clay | last post by:
I'm trying to find the most efficient way to query specific nodes from an xml document using vb.net. My app will receive various types of xml documents and there are child nodes that will always...
2
by: dc | last post by:
i have a xml file like this: <?xml version="1.0" encoding="utf-8"?> <validate xmlns="http://tempuri.org/fieldValidate.xsd"> <field name="Short Name" type="SN" length="10"> <requiredChar...
2
by: frame | last post by:
Hi, The other day, I was experimenting with Predicates and STL and came across a gotcha with the following program. The objective of the program is to remove those strings, from a vector of...
3
by: Jason Mobarak | last post by:
Hello -- I'm attempting to get a handle on how to do xpath queries with System.Xml -- so far the biggest hurdle has been how to deal with a default namespace. If I use the test xml: <?xml...
3
by: 0to60 | last post by:
Please help! I'm using the following code to get an XML doc: string str = "http://api.local.yahoo.com/MapsService/V1/geocode?appid=12345&city=addison"; System.Net.HttpWebRequest request =...
9
by: sam_cit | last post by:
Hi everyone, I have the following piece of code, #include <stdio.h> #include "sample1.h" int x = 10; namespace first
1
by: luthriaajay | last post by:
I am stuck with a tricky situation. 1)I am reading element values from an XML document mentioned below: InputDocument.xml ----------------- <?xml version="1.0" encoding="UTF-8"?> <FIXML...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.