Questions tagged [xml-namespaces]

According to the standard, "XML namespaces provide a simple method for qualifying element and attribute names used in Extensible Markup Language documents by associating them with namespaces identified by URI references."

According to the standard,

XML namespaces provide a simple method for qualifying element and attribute names used in Extensible Markup Language documents by associating them with namespaces identified by URI references.

Please note that, although many XML namespaces take the form of a URL, they do not necessarily refer to a location on the Internet.

See also: What are XML Namespaces for?

2420 questions
0
votes
1 answer

Trying to query soap:Body elements using xpath

This is my SOAP XML document: HTTP/1.1 200 OK Date: Mon, 12 Mar 2012 15:42:41 GMT Server: Microsoft-IIS/6.0 X-Powered-By: ASP.NET X-AspNet-Version: 2.0.50727 Cache-Control: private, max-age=0 Content-Type: text/xml; charset=utf-8 Content-Length:…
Emanuel Landeholm
  • 1,396
  • 1
  • 15
  • 21
0
votes
2 answers

Read Complex Rss feed

Hi I'am try to read digg feed, but my code doesnt not return any item from RSS, I think the Namespace is the problem
mastervv
  • 382
  • 1
  • 4
  • 20
0
votes
1 answer

How do I add an xml namespace to a non-root element in Java?

I am receiving xml that looks like this, and using XMLBeans to parse it: data There is a…
Cheese Daneish
  • 1,030
  • 7
  • 15
0
votes
0 answers

how to pre-declare or ignore a namespace prefix with cElementTree?

I'm parsing some invalid XML files with elementTree, and sometimes I encounter files using the xsi:schemaLocation attribute without declaring the xsi namespace first (I think the tool generating them is broken, I'll hunt for its name later). Because…
nraynaud
  • 4,924
  • 7
  • 39
  • 54
0
votes
1 answer

Cant figure out XMLNamespace in my Linq to XML query

Format of XML from webservice: Random Guy My Linq-to-XML…
Alex T
  • 5
  • 2
0
votes
1 answer

How can i implement a open graph (http://ogp.me/) to use my custom tags in another website?

I've reviewed http://ogp.me/ but couldn't find a solution. What I want to do is: defining a xmlns like: set up an id for that website like: and use that tags as a…
0
votes
1 answer

XmlSerializer namespace is not visible, why?

I have class which I want to serialize: [XmlRoot(ElementName = "FileInfoMessage")] public class Message : IMessage { [XmlAttribute] public int Id { get; set; } [XmlAttribute(Namespace = "Files")] public Version { get; set; } //... } and my…
TrN
  • 1,230
  • 2
  • 17
  • 32
0
votes
1 answer

Importing a schema that imports another schema using the original namespace

I have a collection of schemas that I am trying to use to validate an XML document using Nokogiri. I have a top-level schema with the namespace http://example.com/root. It imports another schema, Extension.xsd, with a namespace…
jkjustjoshing
  • 3,370
  • 4
  • 21
  • 22
0
votes
2 answers

WinRT XAML apps + missing [XmlnsDefinition] attribute

There is not [XmlnsDefinition] attribute in XAML metro style applications, based on WinRT. How my custom namespace mappings from WPF/SL apps should be migrated to WinRT XAML apps?
controlflow
  • 6,667
  • 1
  • 31
  • 55
0
votes
1 answer

Simplest way to get a URI from an attribute value?

In my XML, I have an element like There is a xmlns declaration in this file: I want to make a URI from the value of myAttribute. IE, I…
Nick A Miller
  • 1,325
  • 1
  • 13
  • 20
0
votes
1 answer

Unwanted inline namespace format generated on XML Attribute

The following LINQ to XML C# code creates one XElement having one XAttribute: XElement xWorksheet = new XElement("Worksheet", new XAttribute(XName.Get("Name", "ss"), "Sheet1")); It generates an inline namespace producing the following XML…
John K
  • 28,441
  • 31
  • 139
  • 229
0
votes
1 answer

gSOAP web service respond without namespace

I'm implementing client web service from .wsdl in C++ using gSOAP library. And i have a problem, i see in tcpdump data exchange like this: REQUEST
Svisstack
  • 16,203
  • 6
  • 66
  • 100
0
votes
1 answer

XSD to define free format, except for one namespace

In an XML file, I'd like to use a free format in the default namespace, but at various places some elements should be allowed that are in a specific namespace. I only want those elements to be validated. So what I want is something like…
Peter L
  • 51
  • 1
  • 1
  • 8
0
votes
1 answer

XSLT 2.0 template matching - strip all attributes which are not in the desired namespace

I have an XML with differently namespaced attributes - it's basicly a kind of extended XHTML. I want to dump all the non-xhtml namespaced attributes. Examplary source XML:

blah

Alp
  • 29,274
  • 27
  • 120
  • 198
0
votes
1 answer

Dealing with namespaces in E4X

I'm trying to get data from a namespaced xml file in a flex app. There is a root namespace (xmlns="blah") and another namespace (xmlns:i="blah"), and I'm able to access most tags using the following: var ns:Namespace = doc.namespace(); var…
Dan Monego
  • 9,637
  • 6
  • 37
  • 72
1 2 3
99
100