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."
0
votes
1answer
33 views
Remove XML namespaces with XML::LibXML
I'm converting an XML document into HTML. One of the things that needs to happen is the removal of namespaces, which cannot be legally declared in HTML (unless it's the XHTML namespace in the root ...
1
vote
2answers
31 views
Rename namespace prefixes with XQuery (Update)
The following problem can easily be solved with text processing tools and languages, but this is not how it should be done I guess..
What’s the cleanest and cheapest approach to rename namespace ...
0
votes
0answers
11 views
Is there such thing called “virtual URL” for a namespace?
One of the web services I inherited in my current job contains a WSDL schema with the following namespace definition:
<xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema"
...
0
votes
1answer
23 views
XSLT: Matching elements with namespaces not working
I'm trying to convert a database of XML song lyrics into HTML with XSLT. My XML begins like this:
<?xml version='1.0' encoding='utf-8'?>
<song ...
0
votes
1answer
10 views
Configuring namespace for sp_xml_preparedocument
I have an RSS xml with this format:
<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:media="http://search.yahoo.com/mrss/" version="2.0">
...
0
votes
1answer
39 views
how to add xmlns attribute to an existing xml document
I have existing xml document.
e.g
<Test>
<A />
</Test>
I load this xml into XDocument. I need to add attribute xmlns to this document and save it with this attribute.
var xml ...
2
votes
1answer
18 views
Selecting values out of XML with SQL Server 2008 with namespaces
My XML looks like
<p:initiateTest xmlns:S52="https://collaborate.com/svn/edm/tdp/CharacteristicEnumerations"
...
1
vote
1answer
17 views
XML namespaces in Excel
I'm trying to build a distance matrix using OpenStreetMap travel times in Excel. I'm using the YOURS API and a Google Maps API excel module as reference ...
0
votes
0answers
35 views
Handling namespaces in XML with LXML obectify and pandas
I'm trying to adapt a recipe to parse an xml feed (http://data.gov.uk/dataset/car-parks)
I can parse the document using objectify but the result comes out like this...
...
0
votes
3answers
60 views
Unable to parse elements with : sign [duplicate]
I'm unable to retrieve data from tags with the : sign next to the name. It would be nice to have the avail attribute from the domain:nameelement and the text from the domain:reason.
<?xml ...
1
vote
2answers
20 views
Unmarshalling XML response with namespaces
I'm using JAXB to marshall and unmarshall requests and responses to a web service I'm implementing a Java client for. I am however stuck on the following response that I need to unmarshall.
...
0
votes
1answer
14 views
How can I force the default XML namespace to be listed first?
I am working with an xml specification from outside my organization. I need to generate an xml file that complies with the spec. The file will not validate properly unless the default namespace ...
0
votes
0answers
8 views
PHP Parse XML with namespaces using XML Reader
I have successfully parse this xml using combination of simple_xml and xmlreader. However when I tried to parse bigger file sizes, simple_xml would not be feasible because of memory issues. This is ...
2
votes
1answer
31 views
why do I need the prefix 'batch:' in my spring beans
I see everywhere in Spring Batch examples where the tags are (i.e. <job></job>). However in my xml files I have to include 'batch'. For example <batch:job></batch:job>
Why ...
0
votes
0answers
14 views
How to customize namespace in xs:any with JAXB?
I realize there is more questions about it, but I couldn't find the right answer.
I have two JAXB classes - outer one that contains xs:any element:
package test;
import java.util.ArrayList;
import ...
0
votes
2answers
29 views
XSLT attribute with namespace
Sorry in advance if there has been an answer before like mine, but I have checked and haven't found exactly an answer this simple issue:
<self-uri ...
1
vote
1answer
44 views
cross-browser 'getElementsByTagName' with namespace from responseXML
Am trying to read an XML response using getElementsByTagName:
var rows = items.responseXML.getElementsByTagName("z:row");
for (var i=0; i<rows.length; i++)
{
//do something
}
Above code works ...
0
votes
0answers
8 views
Identify WSDL for a BPMN2 Interface
A BPMN 2 Interface definition can have an implementationRef, which could be a QNAME of a WSDL PortType. According to the example in ...
1
vote
1answer
53 views
Dynamically create and update an .xsd schema in PHP?
I have a .xsd schema that defines both simple and complex types - a sample is below. I need to be able to load this .xsd file, add more elements to it and return it as a string (which will eventually ...
0
votes
0answers
33 views
XML Namespaces in MVC4 Web API
I am currently working on a project that requires me to output XML from its endpoints along with JSON. I have the following model:
[DataContract(Namespace="http://www.yale.edu/tp/cas")]
...
0
votes
0answers
25 views
XMLWRITER C# NAMESPACE
I need write a namespace like this...
<enviGabaritoAutodesembaraco xsi:schemaLocation="http://www.sefaz.am.gov.br/autodesembaraco enviGabaritoAuto_v1.00.xsd " ...
1
vote
1answer
29 views
xmln:tns and targetNamespace
I am seeing some XSD schema documents that declare both a targetNamespace and an xmlns:tns attribute in their top schema element. E.g. the following one taken from here. They also seem to have the ...
0
votes
0answers
73 views
How to add prefix to namespace declaration in axis wsdd file?
Axis 1.4 based webservice.
The client sends following request :
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
...
2
votes
1answer
32 views
What are the “$ns” and “$is_prefix” parameters about?
The SimpleXMLElement::__construct() method and the related functions simplexml_load_string() and simplexml_load_file() all have an optional pair of parameters related to XML Namepspaces: $ns and ...
0
votes
1answer
30 views
How to get attribute with namespace
How can I get the xsi:nil attribute value using PHP's DOMDocument (and if necessary DOMXPath)?
<?xml version="1.0"?>
<Rows xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Row ...
2
votes
1answer
43 views
How to get rid of namespace when marshaling generic objects with JAXB
I use the following code to serialize a class:
public String serialize(T oObject)
{
mMarshaller = getJAXBContext().createMarshaller();
...
0
votes
1answer
24 views
Namespace error in xaml for DataTemplateSelector
I've an xaml code in which I've used DataTemplateSelector.But it shows me namespace error.Code behind for it is written inside "TimeSheet.Views.DataTemplate" namespace and xaml code is written in ...
-2
votes
1answer
43 views
Getting viewCount from XML [duplicate]
I'm currently using the YouTube API form Google and I'm trying to get the "viewCount" array. I've tried this already with no luck at all. Here is the link that I'm currently using.
I tried this ...
0
votes
1answer
33 views
PHP SimpleXML parsing XML with namespaces
I have XML like this
<atom:feed xmlns="http://kosapi.feld.cvut.cz/schema/3" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:osearch="http://a9.com/-/spec/opensearch/1.1/" ...
0
votes
1answer
22 views
Preventing Firefox to add xmlns=“” in Javascript
I don't know why, Firefox adds xmlns="" to my xml elements
Here's my base xml document. I would like, in javascript, to add a Relationship
<?xml version="1.0" encoding="UTF-8" ...
1
vote
1answer
31 views
Can't parse Xml with Namespaces and in javascript
I'm not able to parse an XML with namespaces:
Here's my XML:
<w:drawing>
<wp:inline distT="0" distB="0" distL="0" distR="0">
<wp:extent cx="2371148" cy="1999323"/>
...
0
votes
1answer
29 views
How to create Homogeneous Namespace Design-consistent XSDs?
I would like to have an array of files all in the same namespace for simplicity sake and because they are conceptually related. I have a main or central xsd that will include other schema files and ...
0
votes
1answer
46 views
How do i read a XML file with namespaces (VB.net)
Ok, since my last question about this trouble was a bit faulty, i decided to make a new one that's more correct.
Im trying to read a XML file that looks like this:
<?xml version="1.0" ...
0
votes
1answer
35 views
xmlns namespace redefinition error using SimpleXmlElement to create RSS feed?
I am trying to use PHP to create an XML document that will be used for an RSS feed. I've got it working for the most part, but I am getting a error on line 2 at column 29: redefinition of the xmlns ...
0
votes
1answer
27 views
Get XML in PHP without SimpleXML_load_file
I am trying to get information from a RSS feed, and it I have managed to what I want using PHP and Jquery, but I want to cron it, and at the moment my app starts using .js, which my host says cannot ...
2
votes
0answers
49 views
Python: xpath.find() won't find new elements if they were added without namespace
Today I stumbled upon a peculiar behaviour of the xml.dom and xpath modules and it took me a while to figure out it had to do with XML namespaces:
from xml.dom import minidom
import xpath
zooXml = ...
1
vote
1answer
106 views
Adding namespaces to root element of xml using jaxb
I am creating an xml file whose root elemenet structure shuould be like:
<RootElement xmlns="http://www.mysite.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...
0
votes
2answers
15 views
Difference between xs and xcs in XML schema file?
For some reason Visual Studio wants me to do
<xcs:element ...>
</xcs:element>
rather than
<xs:element ...?
</xs:element>
What's the difference?
0
votes
1answer
25 views
I can't get xmerl_xpath to work for XPath expressions involving namespaces
I can't get xmlerl_xpath to find nodes with namespaces.
Given an XML document, e.g.
<ostrich:Zebra xmlns:ostrich=\"some-url\"/>
and an XPath expression, e.g.
/x:Zebra
and a namespace map, ...
1
vote
1answer
43 views
Access attributes of XML node with namespace in PHP
I have something like this:
$x = simplexml_load_file('myxml.xml');
[...]
foreach($x->y->z[0]->w->k as $k){
[...]
}
My XML file is something like:
<x>
<y>
...
2
votes
1answer
52 views
How to mention namespace in XSLT file when the namespaces are dynamic?
I have a requirement to store XML data in DB and after that retrieve xml from DB and convert to PDF. For that I am using XSLT with Apache FOP. The below code is working fine with current namespaces in ...
0
votes
1answer
51 views
Using XPath and VB.NET to parse XML containing namespsaces
There are several related questions, but none which provide the guidance I need.
Assuming the following XML:
<?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?>
...
0
votes
1answer
10 views
Eclipse's XML Editor Includes ns: Prefix
I am using eclipse's XML editor to edit a DocBook file.
I don't want the <ns:, I just want <callout.
How to prevent this?
Did some searches, but eclipse's documentation is really poor.
0
votes
1answer
36 views
Reading XML Node with ActionScript 3
I have an XML file (simplified below) and I am unable to read the contents of the nodes:
<List xmlns="Default" xmlns:st="ST" xmlns:lc="LC">
<Main>
<st:ID>10</st:ID>
...
0
votes
1answer
82 views
Python XML namespaced element text
I want to write a simple SOAP response using Python's ElementTree API (and lxml). Writing the SOAP response involves writing element text (values) with a namespace. For an example, click here.
...
0
votes
1answer
46 views
Error in processing paths generated by XML file using XPath
I have XML file andi'm trying to use XPath to get all the values for it's paths, but it doesn't generate values for the NameSpaces like :
//rss/channel/item/yweather:forecast/@low
OR
...
0
votes
0answers
22 views
How to parse multiple Namespaces using the DIDLParser Cling
I'm using Cling's DIDL Parser to parse an XML from a device. It contains different namespaces (upnp, dc and vx), but when I call getProperties on a parsed Item, I'm able to see only the upnp and dc ...
1
vote
1answer
32 views
XMLNS and semantical understanding by search engines
I use a bunch of semantic markup on my site, from schema.org, Dublin Core, OGP, FBML, data-vocabulary. But since I use HTML5, the W3C-validator doesn't like all of XMLNS markups, like
...
0
votes
1answer
56 views
select xmlns attribute with xmlstarlet
In xmlstarlet how can I select the value of the xmlns attribute?
I tried with
xml sel -t -v //@xmlns input.xml
but didn't get any result. On the other hand
xml sel -t -v //@id input.xml
prints ...
0
votes
1answer
44 views
XML Schema: restricting an element from another namespace
I'm writing an XML Schema for a document type that includes tags from other namespaces. (Atom and GML, to be specific: well-known standards.) Requiring a particular tag from another namespace seems ...