Re: Word 2003 XML



On 2006-06-20 01:41:58 +0100, "Peter Jamieson" <pjj@xxxxxxxxxxxxxxxxxxxxxxxxxx> said:

My very limited understanding of XML extensibility is that it is made clear to the parser/application which elements are foreign by declaring namespaces in the root element.

I would see it slightly differently.

[...]

It may also be worth pointing out that in the general case, a parser may not have much info. about the schemas associated with an XML document. The schemas, or rather the associated namespasces, may be named in the document (e.g. using attributes that define alias names), but the names are just names, primarily intended to ensure uniqueness in the event of name clashes (which is what namespaces are all about). Even where the names look like URLs they do not necessarily point to any additional information about the schema. For example, one of the first snippets in a WordProcessingML document defines an alias "w" as follows:

I did oversimplify somewhat, and your description does make sense. In the general case an application will have no knowledge of the semantics of anything from other namespaces, so is severely limited as to what it can do with them.

Thanks for the clarification!

Cheers,

Chris

.



Relevant Pages

  • Re: XmlDocument.LoadXml and namespaces
    ... I have 3 namespaces declared in the header of the file. ... > and that way if you for instance declare namespaces on the root element ... > besides the root element all child elements also have those namespaces ...
    (microsoft.public.dotnet.xml)
  • Re: XmlDocument.LoadXml and namespaces
    ... and that way if you for instance declare namespaces on the root element and do not declare/redeclare namespaces on any child elements then besides the root element all child elements also have those namespaces in scope as nodes of their own. ...
    (microsoft.public.dotnet.xml)
  • removing spurious namespace declarations on XSLT output
    ... also I find that (for namespaces that are referenced in the stylesheet) even ... tree, namespaces declarations are repeated on individual nodes of the result ... on the root element, and other namespaces shouldn't be output at all. ...
    (comp.text.xml)
  • Re: Splitting xml files using Document and Envelope Schemas
    ... Just seemed like once the file was broken up, Biztalk did not recognize it. ... Maybe it would be easier for me to see the schemas, envelope, and sample ... > Well I did have target namespaces set for both schemas. ...
    (microsoft.public.biztalk.general)
  • Re: getting rid of NS0 (name space) in xml tags
    ... our partner is using bts2004 and I'm using ... My envelope/document schemas ... I am not too surprised or bothered that the inbound xml is ... As I know U can ignore the prefixes if U don't want to use the namespaces ...
    (microsoft.public.biztalk.general)