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
1
vote
1 answer

How do I add a simple namespace?

How do I make this line in my xml? (the problem is the namespace) The closes I came was this: XDocument doc = new XDocument(); XElement root = new XElement("root", new XAttribute("name", Name), new XAttribute(XNamespace.Xmlns,…
radbyx
  • 9,352
  • 21
  • 84
  • 127
1
vote
1 answer

Accessing local assembly ValueConverters

I am having some problems trying to add a ValueConverter in my xaml usercontrol: at start I had problems just to add the reference to the local namespace, after some compiling/cleaning/recompiling it seems to finally see itself. Still, it says that…
SirePi
  • 242
  • 1
  • 3
  • 11
1
vote
1 answer

How to add two XMLNS codes?

I already add one fb xmlnx code like below, and now I wana add another one also. when I add like below, it shows error,
RJ Style
  • 111
  • 1
  • 2
  • 11
1
vote
1 answer

QXmlStreamReader and empty namespaceUri() on attributes

This is as much an XML question as it is a Qt one: Why does the following test for a namespace-uri of the attr attribute of the foo element fail? { const QString test(""); …
Marc Mutz - mmutz
  • 24,485
  • 12
  • 80
  • 90
1
vote
1 answer

How to add namespaces to root node in SQL Server 2005 using XML FOR PATH

I've created Select...FOR XML PATH statement using SQL Server 2005 and need to add several namespaces and schema reference to the root node. xsi:schemaLocation="http://somewhere/v1/…
user1364303
  • 25
  • 1
  • 5
1
vote
2 answers

XSD to XML. Multiple namepaces without prefixes. How to?

I am using an XSD file to generate C# code through xsd.exe and serializing XML using the resulting code. The problem is that I must generate an XML file having a defaut/root xmlns namespace, and an element definining another "raw" namespace on this…
darkey
  • 3,672
  • 3
  • 29
  • 50
1
vote
1 answer

Using jaxb marshal xmlns attribute missing from xml output

I have some jaxb objects that are generated from an xsd I created. Previously when I marshalled the content, the xml output looked like this: .......(Data) I…
vogelj
  • 11
  • 3
1
vote
1 answer

Configuring an XML Namespace

I have made an XML generator with a few different options, one is a style option which defines whether to use attributes or elements for primitive data types. XML schemas aren't supported right now, but I need to allow the setup of an XML…
Doug Molineux
  • 12,283
  • 25
  • 92
  • 144
1
vote
2 answers

XML namespace in T-SQL

how would you write a t-sql query if the namespace is prefixed in all of the elements? I've tried many variations, and this is what I've got so far, but it just doesn't work... DECLARE @x xml SET @x = (SELECT xml_data_column FROM dbo.Table WHERE…
brynn
  • 107
  • 1
  • 2
  • 11
1
vote
1 answer

java.xml.Validator: xsi:schlemaLocation is ignored when namespaces are present

I am currently trying to solve a (hopefully) simple problem, but I guess I am missing the obvious. Self contained example code can be found over at gist.github.com I am trying to validate an XML document that contains namespaces and an implicit…
michael
  • 1,577
  • 1
  • 12
  • 18
1
vote
1 answer

XML generated by XMLWriter in WCF Custom Encoder generating namespace conflict

I'm using a custom encoder in my WCF application to write out the SOAP message XML. When I use the default XML textMessageEncoding built into WCF it's fine, but when I use a custom encoder I get a problem with the namespaces - the xmlns:a tag below…
StickyMcGinty
  • 436
  • 1
  • 6
  • 20
1
vote
2 answers

Namespace Aware XML Parsing - Mapping not in root tag

I am using Xerces 2.9.1 to perform some XML parsing. The XML contains namespace and I configured Xerces to be namespace aware. I have two prefixe defined, rec and com. rec is defined in the root tag and com is declared in each node that uses…
Olivier.Roger
  • 4,241
  • 5
  • 40
  • 68
0
votes
1 answer

Where is the x-calconnect-venue schema defined?

I'm creating an atom feed and want to include event venue data similar to the RSS example on the Zvent API. EventBrite includes a similar snippet with the same xCal namespace (urn:ietf:params:xml:ns:xcal). Here's the snippet: …
brightgarden
  • 410
  • 4
  • 12
0
votes
1 answer

Create XSD and XML document from dataset where xml references xsd Import xml to excel

Long title but hopefully I can explain what I am after. I have read and googled a ton of xml documentation but haven't quite gotten an answer to what Im trying to do. I am trying to create an XSD document that generates explicit type definitions…
Jason Lee
  • 23
  • 5
0
votes
1 answer

Custom Tags and Javascript

I am building a web application which is supposed to be (on the development level) highly standardized. To accomplish this i want to use custom namespace tags which in the sourse code appear as they do, but are modified by javascript depending on…
1 2 3
99
100