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."
3
votes
0answers
793 views
SOAP response - child element namespace
I have problem with namespace of child elements in SOAP response.
Here is a SOAP request:
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
...
2
votes
0answers
150 views
The prefix “ cannot be redefined from ” to <url> within the same start element tag
I'm trying to generate the following xml element using C#.
<Foo xmlns="http://schemas.foo.com"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://schemas.foo.com
...
2
votes
0answers
375 views
How do I stop d4p1 being a required namespace prefix within my WCF service SOAP request XML
I've built my first ever WCF service designed to receive HTTP Post requests that have a message body in a strict format that I have no influence over. Here is an example:
<s:Envelope ...
2
votes
0answers
785 views
remove xmlns attribute from the root element while marshalling jaxb
This might be a related to JAXB Marshaller - How do I suppress xmlns namespace attributes?
But my problem is a little different.
I do the regular java marshalling and my xsd has no namespaces.The ...
2
votes
0answers
529 views
WCF Wsdl - Get rid of the “tns” xml namespace prefix with my own prefix?
Is there any way to replace all tns prefixes by my own when my WSDL is generated?
I know that setting the namespace and name of my ServiceContract, OperationContract, DataContract, etc. makes it so ...
2
votes
0answers
127 views
Which namespace is used to uniquely identify a web service?
Each XML web service should use a unique namespace so that client applications can distinguish it from other services on the web. Which namespace is used to identify a service: one set via ...
2
votes
0answers
2k views
XSLT: change namespace in transformer, not in in stylesheet / remove namespace prefix
I am transforming some XML using XSLT and Saxon like this:
Source sourceXML = new StreamSource(...);
Source sourceXSLT = new StreamSource(...);
...
1
vote
0answers
54 views
Remove default xsd and xsi namespaces from MVC xml response
I need to remove the xsd and xsi namespaces from my MVC api response but I can't make it work. (The reason I need to remove them is because we're sending it to a third party map provider, and it ...
1
vote
0answers
56 views
Adding default namespace declarations using a generic list wrapper with JAXB
I am all new to JAXB and having wrecked my brains for a week over this I would like to ask the following question. How can I obtain default namespace declarations like these using a generic list ...
1
vote
0answers
894 views
How to add prefix in front of xml element using attribute in c#
with the programming is this:
As a result I want to have this:
<rootprefix:rootname
noPrefix="attribute with no prefix"
firstprefix:attrOne="first atrribute"
...
1
vote
0answers
134 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")]
...
1
vote
0answers
377 views
Programatically clean/ignore namespaces in XML - python
I'm trying to write a simple program to read my financial XML files from GNUCash, and learn Python in the process.
The XML looks like this:
<?xml version="1.0" encoding="utf-8" ?>
<gnc-v2
...
1
vote
0answers
99 views
Create XML files which have tags with prefix (python and lxml)
I try to create an XML file like this:
<pico:record xsi:schemaLocation="http://purl.org/pico/1.0/ http://www.culturaitalia.it/pico/schemas/1.0/pico.xsd>
...
1
vote
0answers
604 views
Disable JAXB namespace substition on Marshalling?
I have an XSD Schema which uses namespaces to make elements with the same name distinguishable. I am generating the JAXB bindings using the Maven plugin jaxb2-maven-plugin.
When marshalling my JAXB ...
1
vote
0answers
172 views
namespace schema for urn:uuid:C2F41010-65B3-11d1-A29F-00AA00C14882
The XML Schema Definition for an XML file generated on a microsoft platform
imports the namespace uuid:C2F41010-65B3-11d1-A29F-00AA00C14882 . However I
am unable to find an XML schema definition for ...
1
vote
0answers
193 views
No library found for namespace when trying to add a new tag
I am trying to add a new/custom tag in my xhtml file as I want to replicate "<%@ taglib uri="http://ckeditor.com" prefix="ckeditor" %>" in xhtml.
But I get an error saying no library found for ...
1
vote
0answers
135 views
JAXB: marshalling objects with attributes gives a xml with namespaces redeclared
I have this xml:
<tag1 xmlns="myNamespace.com/#">
<insideTag myAttribute="5">
some text
</insideTag>
</tag1>
but after marshalling it becomes this:
<tag1 ...
1
vote
0answers
106 views
Is there a namespace I can set for my JiBX customizations
Currently, I have the following JiXB customizations file:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<schema-set>
<schema name="./target.xsd" >
<complexType ...
1
vote
0answers
114 views
SelectNodes with namespace returns too much occurrences
I'm trying to process a response from Bing Maps REST Routes API.
The query is about a driving route with parameter routePathOutput=Point (i.e. returns the list of Point (latitude and longitude) ...
1
vote
0answers
193 views
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("<foo ...
1
vote
0answers
2k views
JAXB: specific Namespace Prefix to all the elements
I have the same problem of:
JAXB :Need Namespace Prefix to all the elements
however, I have to use a specific namespace. Then I change the package-info.java to:
@XmlSchema(
namespace = ...
1
vote
0answers
76 views
How to output xmlns in children when generating sample xml from xsd
When I create an XSD for each schema and then reference all of them in a "main" schema using imports, the xmlns entries are all at the level, but I need them to show up in its corresponding child ...
1
vote
0answers
50 views
Get namespaces based on XAML
I have XAML code as a string in my C# app. I want to get the namespaces from it as a object, because I want to check if a namespace exists in the code. Can anyone help me? Thanks, Peter.
0
votes
0answers
12 views
Adding the namespace for SOAP message body
i want to add the name space for all the items in the SOAPbody, the configuration related to the XML manipulation is in below i added the name space for the header but it doesn't come to the SOAP-body
...
0
votes
0answers
10 views
Query XML Data column using SQL and XML methods
I am performing a query against an XML data type column in SQL Server 2012. An example of the data is:
<ns:Resume ...
0
votes
0answers
14 views
Connection Refused Error
I have the problem, if I try to parse a File, I get a connention refused error.
This is because I have no internet connection on the machine which runs the code, and I dont have the possibility to ...
0
votes
0answers
17 views
Forcing xml.etree to output “unused” namespaces
I'm trying to create shibboleth configuration files using xml.etree in python, and I'm having problems with it omitting namespace assignments when it output the finished document.
I'm pretty sure that ...
0
votes
0answers
36 views
Can't read XML file with namespace without removing the namespace
I am dealing with huge XML files (hundreds of MBs). I found perfect solution that does work for me:
How to use XMLReader in PHP? (accepted answer).
Now, in my code I need to know the path of ...
0
votes
0answers
26 views
Same suds script sends different SOAP envelope on different machines
I have this simple suds script
import suds
wsdl = "https://consultaqr.facturaelectronica.sat.gob.mx/ConsultaCFDIService.svc?wsdl"
client = suds.client.Client(wsdl)
uuid = ...
0
votes
0answers
43 views
What is the difference between these two SOAP procedure definitions?
I have who SOAP servers based on the Zend Soap Server from ZF.
It happens that they behave differently and I have no idea why.
The code base is identical. WSDLs generated are identical. The only ...
0
votes
0answers
35 views
Best practice for reading XML element with a namespace
I'm attempting to read an XML file with a namespace defined on the root element.
I've read several articles that suggest using XReader, using XmlNamespaceManager, stripping out the namespace with ...
0
votes
0answers
49 views
Remove Duplicate Namespaces
So, I am trying to write out this:
<w:document xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main">
...
<w:rPr ...
0
votes
0answers
22 views
How to always display the prefix namespace in Simple framework?
Issue with XML prefixes
I would like to have the prefix always displayed on every child of my XML.
For that, I annotated each of the classes with corresponding @Namespace(reference = "uri", prefix = ...
0
votes
0answers
43 views
Cannot resolve the name 'http://www.w3.org/2000/09/xmldsig#:KeyInfo' to a(n) 'element declaration' component
Using Eclipse in my web service project I am having problem with XML namespaces, namely I have the following schema in my project :
<?xml version="1.0" encoding="UTF-8"?>
<schema ...
0
votes
0answers
29 views
WCF Serialization Long Namespace being repeated instead of prefix
We are using contract first approach for WCF services in our project, XSD(s) are converted to entities using WSCF Blue and default serialization is used. The default serializer serializes the packets ...
0
votes
0answers
54 views
Add xml text after duplicate child node in existing xml file in c#
I have following xml file:
<?xml version="1.0" encoding="UTF-8"?>
<Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2005/01/reportdefinition" ...
0
votes
0answers
16 views
prefix missing from xml document
I am creating XML document via XML document object model, all the attributes and prefix are visible in debug mode but are not visible in doc.documentelement.innerxml, any suggestion?
...
0
votes
0answers
39 views
xlsm: excel removes xml-namespaces when saving
In our company, we create xlsx/xlsm files for customers but now I have a strange bug.
The created xlsm file is properly written and excel can open it, but when it's saved, all the namespaces are ...
0
votes
0answers
57 views
jQuery XML parsing with namespaces and IE10
I'm having a bit of an issue with jQuery (1.11) and parsing namespaced XML in IE10. I've managed to simplify the issue down to a base case here:
var myXML = $($.parseXML("<a:mydoc ...
0
votes
0answers
37 views
Does anyone have the XSD Schema for the namespace http://schemas.microsoft.com/analysisservices/2003/xmla?
I'm developing a webservice that serializes a Xmla query from a SSAS Olap cube, doing in the standard way I'm receiving a pure Xml object from the webservice proxy which is Ok, but I'm trying to ...
0
votes
0answers
39 views
Saxon-HE-9.5.1.4 Extracted XML node doesn't contain the root element namespace
Extracting a particular element(node-set()) Ex. <BBB> from the following XML payload ignores the root element namespace to be included in the results
<soapenv:Envelope ...
0
votes
0answers
28 views
GoogleScript XmlService method setAttribute for addding “xml:lang”
How I can generate such XML tag in Googlescript via XmlSevice?
<display-name xml:lang="x-default">Adam</display-name>
I have used different variants setAttribute but nothing is works.
...
0
votes
0answers
80 views
Jax-ws can't get params from operation with default namespace
Interface:
@WebService
@SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.ENCODED, parameterStyle = SOAPBinding.ParameterStyle.WRAPPED)
public interface WebServ {
...
0
votes
0answers
101 views
WCF service XmlSerializerFormat remove xmlns from returned xml
so basically I have a very simple WCF service. One of the methods looks like this
[WebInvoke(Method = "POST, BodyStyle = WebMessageBodyStyle.Bare, RequestFormat = WebMessageFormat.Xml, ResponseFormat ...
0
votes
0answers
66 views
Adding xml namespaces to code programatically
I am working on some code in C# where I want the output as the text present at some xpath from some xml-file. Now as the xml file keeps changing and so do the namespaces, I don't want to hardcode the ...
0
votes
0answers
79 views
NAMESPACE_ERR when using FlyingSaucer
I am having problems with creating a PDF using the simple example found here: ...
0
votes
0answers
59 views
how to parse a soap with custom namespace using c#
Hi receive a SOAP response via an .ashx handler , the response is of the format:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:foo="fooURL.com">
...
0
votes
0answers
74 views
SoupUI response success but PHP Nusoap no response
I'm having problems when trying to consume a web service using PHP Nusoap.
Many times if not all times when using SoapUI I get responses.
But with the same ?WSDL I get no response when using PHP ...
0
votes
0answers
279 views
GPX Extensions with Cadence and HeartRate
I have a GPX File with two TrackPointExtensions: HeartRate and Cadence.
Unfortunately, the cadence is not displayed at runtastic or runKeeper.
I think some namespace declarations are wrong, but I ...
0
votes
0answers
56 views
DOMDocument: createElementNS vs createElement in terms of speed (exponential vs linear time)
I am working on creating an XML file using namespaces. There is about several hundreds to several thousands of records, and for each record we need to add about a 100 fields (sub-nodes).
What happens ...