NameSpaces in xml sql

How can I declare the namespaces in a query? I get an error when declaring the namespaces Declare @Mydoc xml set @Mydoc = ( select importe, algo,XD, (select impuesto,tasa,transferencia from CfdiDet ...
more »

2017-11-29 18:11 (1) Answers

Change namespace uri in xslt

I'm trying to convert an xmi file generated by Enterprise Architect in order for it to be accepted by an eclipse tool. One of the things I need to to change is the namespace uri for the prefix uml: from "" to "htt...
more »

2017-10-11 10:10 (2) Answers

Custom XAML Namespace in Powershell

I'm trying to make a WPF app in Powershell using the Material Design in XAML Toolkit but I can't use properties from the "materialDesign" custom namespace. I've tried various ways to define the namespace but all gives the same error: "Exception call...
more »

2017-08-24 13:08 (1) Answers

Getting the value of prefixed XML tag in XSLT

I am trying to get the value of prefixed XML tag data in XSLT. Sample XML: <?xml version="1.0" encoding="utf-8"?> <emp xmlns="" xmlns:m="" xmlns:d="http://www....
more »

2017-07-10 07:07 (2) Answers

Python Parsing weird XML?

I have this weird XML I am trying to parse, and after reading this, I am still having issues. I am trying to parse the NIST CVE database, it only comes in XML. Here is a sample of it. <?xml version='1.0' encoding='UTF-8'?> <nvd xmlns:sca...
more »

2017-04-14 01:04 (2) Answers

XML default namespace and prefixed attributes

I stumbled over some odd behaviour in connection with prefixed attributes. I know - in general - that in most cases prefixed attributes are not used, as they belong to an element which is in a namespace already. But shortly I tried to answer a questi...
more »

2017-03-28 18:03 (1) Answers

Namespace in XML

If I have the following xsd fragment (using MyRootNs but does not matter) <xs:complexType name="SomeType"> <xs:sequence> <xs:element name="SomeElement" type="ns1:SomeType" /> ... Does this result in <SomeT...
more »

2016-12-15 12:12 (2) Answers

Where can I mix-in XML from another namespace?

SVG can be included in XHTML. As can MathML. But which rules govern where any XML dialect can be included in another? And does the included element has to be the usual root element? I want to include HTML tables in SVG, as an example. I don't care m...
more »

2016-12-11 21:12 (1) Answers

How does XPath deal with XML namespaces?

How does XPath deal with XML namespaces? If I use /IntuitResponse/QueryResponse/Bill/Id to parse the XML document below I get 0 nodes back. <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <IntuitResponse xmlns="
more »

2016-11-25 01:11 (1) Answers

Generate XML that uses a default namespace

I want to use Python and lxml to generate XML like the following: <root xmlns="foo"> <bar /> </root> However, the following code creates XML that is semantically identical, but uses ugly auto-generated namespace prefixes instea...
more »

2016-11-01 19:11 (2) Answers

Adding multiple XNamespaces into an XDocument

I am trying to create a GPX serializer using the XDocument from Linq. At the beginning of the document I should specify 3 XML namespaces, to achieve something like this: <?xml version='1.0' encoding='UTF-8' ?> <gpx version="1.1" creator="Tr...
more »

2016-10-26 21:10 (0) Answers

Root element with header and detail rows

I use a for xml select to produce an xml file. I want to have two root nodes that contain some header tags and then detail rows that are a result from a query on a table. Example: <Root> <FileHeader> HEADER ROWS </FileHeader&g...
more »

2016-10-09 20:10 (1) Answers

Validate XML with multiple namespace in Java

I am trying to validate a XML document that uses multiple namespaces. I want to embed tags of the secondary namespace within a document of the primary namespace. The main/primary namespace does not "know" of the extension/secondary namespace. test.x...
more »

2016-09-21 21:09 (1) Answers

C# Get Xelement Attribute Value by Attribute Name

I'm trying to get the value of operating-system attribute in the xml code below but in all of the solutions I've tried so far from stack, dotnetcurry, and Microsoft, I get either a NullPointerExecption or it just returns no values. Here is the xml ...
more »

2016-08-27 16:08 (2) Answers

Why xmlns:xsi, and not only xsi in XML documents?

I understand that, by convention, the default namespace is named xmlns attribute in the root element of an XML document. Other namespaces are named other names. Now, I wonder why is XML Scheme Instance namespace always named xmlns:xsi and not simply ...
more »

2016-08-14 11:08 (1) Answers

Namespace in XML element value?

I recently stumbled across this: <s:Envelope xmlns:s="" xmlns:a=""> <s:Header> <a:Action s:mustUnderstand="1">http://schemas.xmlsoap...
more »

2016-08-03 16:08 (1) Answers

RSS XML show itunes:image url in PHP

Hello I need some help getting the image URL of the itunes:image attribute from my XML rss feed. I can retrieve everything else in the array, but not 'mainimg'. The current code returns nothing for the image although it's there. Do you have any idea ...
more »

2016-06-12 19:06 (1) Answers