basic xml


I'm reading a book and I'm trying to learn the very basic about xml.

Can somebody give me an explanation why namespace are used in xml
perhaps with a simple example that demonstate the usefulness.


8/12/2008 7:14:10 AM
dotnet.xml 7266 articles. 0 followers. Follow

1 Replies

Similar Articles

[PageSpeed] 12

Tony Johansson wrote:

> Can somebody give me an explanation why namespace are used in xml
> perhaps with a simple example that demonstate the usefulness.

If there were no namespaces then you could not mix different XML 
vocabularies as you could not distinguish for instance the XHTML 'table' 
elment from a 'table' element in another vocabulary. Using namespaces 
the complete name of the XHTML 'table' element is 
{}table where the URL 
'' provides the globally unique context for 
the local name 'table'. And any {}table is 
different from that.


	Martin Honnen --- MVP XML
mahotrash (1777)
8/12/2008 11:05:55 AM

Similar Artilces:

ADFS basics
Hey all, I'm using (trying) to use ADFS to logon to my SAML 2.0 parter. In essence I would like to use AD as my source of truth. Unfortunately, I'm having some issues with my logoff and trying to troubleshoot. One super basic question, the directory /adfs/ls which is used as my logoff URL (and logon URL) has a default document setup as default.aspx which does not exist. Question 1: How does pointing to the adfs/ls directory alert ADFS to which action I'd like to perform? It obviously works but I'm not sure how ADFS know whether to pop a logon screen or go...

Disdplaying resulting XML Response as Raw XML on Web Page
This may be trivial. It was back when I did HTTP POST with XML Docs. Now on ASL.Net I'm using XML proxy classes and everything I've tried tries to act on the XML. I have a test ASPX page that I use to test web service. When response is returned I want to open a new window and disdplay result as XML. I don't want tags removed. I don't have any XLST. I just want to popup with raw XML tags and all. I don't mind invoking anoither ASPX page to display the XML. I'm guessing the is very easy, or should be. doug wrote: > This may be trivial. It was back when ...

Visual Basic Macros, relative position
Dear Experts, I am making a report, and I have a set of data, in a very looong row: MKT_VAL NET_ASSETS TOT_ASSETS 46 51 51 6233 6228 6228 Over 100 fields. I need this data to be changed to run down a column. MKT_VAL 46 6233 NET_ASSETS 51 6228 TOT_ASSETS 51 6228 I tried to make a macro to do this. It would be run after I copied and pasted the three column cells into another area. Sub ShiftNullData() ' ' ShiftNullData Macro ' Macro recorded 11/14/2006 by Rodger Lepinsky ' ' Keyboard Shortcut: Ctrl+q ' Range("A18").S...

How to pass xml inside xml to an xslt
Hi I have an xslt. The input to the xslt is a dataset. In that dataset, in one of the datatables' column I am stroring xml data using XmlDocument. Now, when I transform this xslt in c# I get the following error: "Unexpected XML declaration. The XML declaration must be the first node in the document, and no white space characters are allowed to appear before it." Is there a workaround to this problem? Thanks, Anshul Bansal Anshul Bansal wrote: > I have an xslt. The input to the xslt is a dataset. In that dataset, in one > of the datatables' column I am stroring x...

Basic Visual Basic
I want to learn VB for Excel, but I need to know a good free site for help and to read up on it. Can anyone help me? --- Message posted from Hi as a starting point: -- Regards Frank Kabel Frankfurt, Germany > I want to learn VB for Excel, but I need to know a good free site for > help and to read up on it. Can anyone help me? > > > --- > Message posted from ...

Hi guys, apologies for such a basic question. In my defence I'm not really a c++ programmer, and when I have dabbled, I've used MFC. I've got a call to an external DLL I'm using LoadLibrary to get. I've declared the call as : lpFUNCTION MyFunc(CString p1, CString p2, short* retVal, CString* retText) if I call it : short retVal; CString retText; iRet = MyFunc ("123456", "12345678", &retVal, &retText); - it works fine. Unfortunately this DLL is being called from a non-MFC app. So I;ve tried : lpFUNCTION MyFunc(char[] p1, char p2, short* ...

MSP VBA Basic Help Needed!
I'm trying to add common text names from a Text Column in MSP-07. I'm using Rod Gill's book to learn VBA for Office and primarily MSP and have also emailed him specifically about whether or not MSP-07 is even capable of accomplishing the simple report I'm needing. Basically I have a column (Text26) with some specific verbage which will be standardized and used for several real schedules in our standard template with our company. The verbage is simply: * Early Delivery * Late Delivery * On-Time Delivery * Not Delivered The verbage is calculated as a formula...

I'm new to the DDK. I just d/l the WinDDK 7600.16385.1 and I'm trying to use the WinDbg. So I took the sample "tracedrv" (WINDDK\7600.16385.1\src\general\tracing\tracedrv), builded it and try to run tracectl.exe with the WinDbg, using "File->Open Executable" option. I set the Symbol File Path to tracectl.exe path, where "tracectl.pdb" is. I'm getting the message "*** ERROR: Symbol file could not be found. ", and can't see it in Source Mode. When I run the program, I don't see the trace messages of the driver (KdPrint...

XPath as XML attribute
Hi all, I'm a newbie to XSLT working on my first project with it and I'm stuck on a particular thing. I want to create a document that will write the PCDATA from a given <Line> element, then, in the next table cell, I want to insert the text within the element pointed to by the "xpath" attribute. <Line num="1" xpath="Income/Additions/CashFlow">Cash Flow for 2005</Line> <Line num="2" xpath="Additions/AddDeductions/Total">Total Deductions for 2005</Line> <Line num="3" xpath="Additions/AddDe...

Is there XML support in VS.Net 2005?
For those of you beta testing VS.Net 2005, have they added any XML classes to MFC? Have there been any other "big" enhancements to MFC? Yeah, yeah... some people say MFC is dead, but it is still *THE* easiest/best way to develop a real world desktop application. I dont exactly know what enhancements would be there in MFC regarding XML but I wouldnt be surprised if this is not addressed. XML support is far better in .Net than MFC and you can use .Net with MFC as well. Although it may not be something you like because you will create .Net run time dependency. -- Ajay Kalra [MVP...

xml document
hi, I have a huge xmldocument that represent data from a table. How can I break this down into multiple xmldocuments, say of a certain number of records each? The least memory intensive solution would be to read over the source document with an XmlTextReader and switch to a different output ( presumably a file ) every so often. <pseudoCode> XmlTextReader reader = new XmlTextReader( ... ); XmlWriter writer = new XmlTextWriter( GetNextFilename() ) int pageSize = 100; // chunk every 100 rows int currentRow = 0; // Init the writer writer.WriteStartElement( "myRoot" ); // be...

basic System Policy question
If I understand this correctly System Policies are really only useful in cases with multiple information stores (Enterprise version only) so that settings can be set for all of them in one central place. Can settings set in a System Policy be overridden at a lower level like an individual information store itself, or an individual user account? Or do System Policies rule no matter what, no overrides? System Policies are Enforced (No-Override) at Store level or Server level. However, individual user account settings can override Store level setting, including System Policies settings. ...

I am responsible for producing a yearly 180-page catalog for the company that I work for. In the past, we used a production house to lay out the pages and then send PDF's to our printer. We want to eliminate the production house and do everything in house - sending the PDF's ourselves to the printer. I know nothing about publisher 2003 and am having trouble finding any books (especially entry level) to help me learn the application. Any suggestions? Lots of help on the Microsoft web site, a good course in catalog creation Publisher Courses

XML inheritance, question about xml configuration. Thanks
For a long time, I am looking for a way to setup a standard way XML inheritance for my project. I am sure the way I call it is not right, but I think what I need is reasonable. Basically, I want something work like web.config, my project have many levels, on each level, user can put some settings into XML, what I need is a way to give user the ability to change all settings when they want, in the mean time, inherit settings if they are not set in current level, for example, one level 1, I could have setting like <settings> <section id="1"> <pagesize>16</pag...

basic formulas
where can i find a generic listing of what certain things in formulas mean? (ie. a comma) Try clicking on the cell that contains the formula, then click on the "=" button next to "Formula Bar"...this will bring up a box that explains a little bit about the function and show what each section should contain. Some functions are more complex than others so try clicking on the "Help" button inside this new box. This will open up Excel Help about the specific function that you're using I've found that using the Help function in Excel is very...helpful (fo...

Excel 2007, Basic, Square-1 Opening Question
Clicking on an xls or an xlsx file opens Excel 2007; however, the file itself does not load/open (no blank sheet either). Only way is to drag the file from its directory. What have I done wrong? Tks! Wayne Try minimizing and then maximizing Excel to see if that makes the file appear. If it does, I'll build a small routine that does that automatically when a file is opened. This appears to be a very frequent problem for some Excel 2007 users. Bob Flanagan <> wrote in message > Clicking on an ...

Serialize CollectionBase derived List to XML file
Hi, I have a list which is derived from CollectionBase, and it contains a list of User objects, which I want to Serialize out to an XML file. Is there anywhere where I can find how to decode it so that it recognizes what objects are held in my list? or an example in C# prefereably? Many thanks in advance... Colin Colin, You can use the XmlSerializer class. Take note of this (from the help file): "The XmlSerializer gives special treatment to classes that implement IEnumerable or ICollection. A class that implements IEnumerable must implement a public Add method that takes a singl...

Easy XML ?
I have never used XML but I use VC6 all the time. For the first time I need to read and write a few values in a XML file. What is the preferred easy way/library to do this? (I use VC6/MFC but can upgrade to 2005 if that helps) Best regards from Petter Hi, I have used VC6 to code a MFC application that reads and writes to XML files. The free C++ XML library that I used was TinyXML. I prefer it over other heavy weight C and C++ XML parsers. :) You might want to check out TinyXML at: Best Regards, Yeoh -- I haven't used i...

Appropriate DOCTYPE for XML Formatting Rules
Hi All, I have what is quite possibly a stupid question about XML formatting and DOCTYPE declarations. I am using FrontPage 2003 to apply XML formatting rules to my web pages by right clicking in the code view and selecting "Apply XML Formatting Rules". Using the command made changes similar to the following: Original Line: <img src="my_image.gif" width="35" height="9" alt="alt_text"> New Line (the only difference is the forward-slash at the end): <img src="my_image.gif" width="35" height="9" alt="...

Two basic questions
How to use either the ClassWizard or the Add Member Variable Wizard to add member variables of type like, "long","double", or "int", to the controls on a dialog box? On the dialog of the Add Member Variable Wizard, there is a Combo Box named "Category", which has two options: Value and Control. What's purpose of "Control" option? Thanks for your help! jianbao wrote: > How to use either the ClassWizard or the Add Member Variable Wizard to add > member variables of type like, "long","double", or "int",...

Back to basics
Hi As a new user of Outlook but an old user of Outlook Express I have a couple of questions Scheduling - I run a business that is not reliant on times so when I go to put someone's recurring appointment into my system I get conflict and adjoining meeting messages The start / finish times are irrelevant but I do forward project their visits at 4 weeks/6 weeks or whatever as recurring My question is can I make a 'timeless' appointment and not worry about the start time/duration whilst still being able to use the recurring feature? Regards Stephen West Gold Coast, Australia only if...

XML 2004 shows international side of XML
XML 2004 Shows International Side to XML Alexandria, Va. - Oct. XX, 2004 - IDEAlliance, a leading industry association dedicated to fostering XML and other information technology standards, today announced that XML Conference and Exposition 2004 will feature more than 40 international speakers and exhibitors showcasing XML technologies and solutions from around the globe. XML 2004 is slated for November 15-19 at the Marriott Wardman Park Hotel in Washington, D.C. Proving that XML is truly an international solution to many of today's IT and business problems, XML 2004 has talks on many v...

Basic Basic question
Hi, I have recently taken over our SBS2003 server and amongst out MS ACtion Pack Subscription are 5 CD Micrsoft CRM 1.2 Cd's 1-5. I would like to try this software, but I cannot find any information on it so I have a few questions. 1. In testing it, I assume that I need to install itonto my SBS2003 server - is there any other way - i have no spare machines, apart from a couple of workstations. 2. Is the a copy of the programme since it doesn't have the usual yellow Product key other of the CD's have, or does it take the Key from SBS2003? 3. Am i going to screw anything up if...

i have office basic 2003,does IRM work with basic?
i have office basic 2003,does IRM work with basic? and how do i get it to work Office basic? Standard Edition? Small Business Edition? Small Business Management Edition? IRM? Information Resource Management? "Oola" <> wrote in message >i have office basic 2003,does IRM work with basic? and how do i get it to >work Information Rights Management depends on having a Windows 2003 server with the IRM bits installed. Since Office Basic comes with OEM computers, I will presume tha...

Parsing XML over TCP/IP
Sorry if this has been posted before... I am receiving XML messages over a TCP client. Messages vary in size and sometimes can arrive in groups. Thus, I am not guaranteed to receive a full message in a single read from my socket. I am loading each message into an XmlDocument after it arrives. I need a way to make sure I have a complete XML message before I load it into an XmlDocument or it will throw an exception. I am currently finding complete messages by turning each read into a string and manually look for closing tags. Surely there is an easier way to accomplish this, perhaps with ...