xml

How to validate different XML Signatures with Apache CXF?

In our SOA we will have to sign a request (parts of the SOAP header) twice: 1. the client signs the SOAP body 2. the ESB signs a part of the SOAP header, so that the service can verify, that the request was routed over the ESB I'm currently trying to implement/configure this using Apache CXF 2.2. Its working on the client side as well a...

I need multiple xmlns elements in an element with the XmWriter

I'm trying to convert a xml document from one format to another and while doing this I've found that I need to insert multiple xmlns declarations to the root element. Example: <?xml version="1.0" encoding="utf-8" ?> <Template xmlns="http://tempuri.org/TemplateBase.xsd" xmlns:TYPES="http://tempuri.org/TemplateTypes.xsd"&gt; some con...

What are all these null collection entries in my DataContract XML?

Does anybody know why the NetDataContractSerializer might add "nil" entries in a serialized collection? For example, <Jobs z:Id="17"> <_items z:Id="18" z:Size="4"> <JobRecord z:Id="19"> <Name z:Id="20">Job1</Name> </JobRecord> <JobRecord i:nil="true" /> <JobRecord i:nil="true" /> <JobRecord ...

Update element values using xml.dom.minidom

Hello, I have an XML structure which looks similar to: <Store> <foo> <book> <isbn>123456</isbn> </book> <title>XYZ</title> <checkout>no</checkout> </foo> <bar> <book> <isbn>7890</isbn> </book> <title>XYZ2</title> <checkout>yes</checkout> </bar> </Store> Usin...

xsd:choice on 'unconnected' elements

I have an xml that comes in two forms <root> <element1 req="mandatory"/> <element2/> <element3/> <root> and <root> <element2/> <element3/> <element4 req="mandatory"/> <root> element1 or elem4 is req'd 2 and 3 are optional. I just cant figure out how to use a xsd:choice on it, help, thanks. ...

get equation from XML, AS3

There's an variable in my swf I want to receive XML. It's an integer value in the form of an equation. How do I receive the XML value for 'formatcount'? My Variable //Variable I want to grab XML<br> //formatcount=int('want xml value to go here'); formatcount=int(count*count/100); Path formatcount = myXML.FORMATCOUNT.text() My XM...

help with selecting nodes with xpath

my xml structure looks like this: <entity id="1000070"> <name>apple</name> <type>category</type> <entities> <entity id="7002870"> <name>mac</name> <type>category</type> <entities> <entity id="7002907"> <name>leopard</name> <ty...

Looking for a library of XSLT to create SVG charts.

I'm looking for a library of XSLT to create SVG charts. I need pie charts, bar charts, line charts, all the usual suspects. I would hope for a reasonably simple DTD or Schema for the input files. Edit: I have the raw data for the charts and a mechanism to convert it into what ever XML is necessary for the XSLT library. ...

C++ tool to generate random XML files from XML Schema ?

I think there should be a tool to do so ? is anyone here aware of any ? I saw other posts related to this but found none for C++, I am aware that I can do that with JAVA and C#. ...

How to parse an XML string in TDI

I am new to TDI. I have a TDI assembly line that calls a web service (ibmdi.InvokeSoapWS) which returns the result as a string in the work attribute 'xmlString'. I then have an AttributeMap that attempts to parse the xml and extract a value (the node it seeks is a few nodes deep). var parser = system.getParser('ibmdi.SOAP'); var xmlSt...

Validate xsl fo in xslt styleesheet

Hi, i have a little problem with validating xml, xslt in details. I have a xslt stylesheet that, transforms xml data source to xsl:fo document. Something like this: <?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&g...

Element was not expected While Deserializing an Array with XML Serialization

OK. I'm trying to work on communicating with the Pivotal Tracker API, which only returns data in an XML format. I have the following XML that I'm trying to deserialize into my domain model. <?xml version="1.0" encoding="UTF-8"?> <stories type="array" count="2" total="2"> <story> <id type="integer">2909137</id> <project_id typ...

Please help me understand why my XSL Transform is not transforming

I'm trying to transform one XML format to another using XSL. Try as I might, I can't seem to get a result. I've hacked away at this for a while now and I've had no success. I'm not even getting any exceptions. I'm going to post the entire code and hopefully someone can help me work out what I've done wrong. I'm aware there are likel...

Metatool for automatic xml code generation

I want to develop a programming tool for developers which can do automatic xml code generation for specifying a GUI design and its controls. The aim is to allow non-programmers specify GUI controls(which in this case perform higher level task unlike WinForms ) from a GUI. So the xml code generated is essentially an internal representa...

something like INotifyCollectionChanged fires on xml file changed

It's possible to implement INotifyCollectionChanged or other interface like IObservable to enable to bind filtered data from xml file on this file changed ? I see examples with properties or collection, but what with files changes ? I have that code to filter and bind xml data to list box: XmlDocument channelsDoc = new XmlDocument(); c...

Is there a better way to deal with reserved characters when parsing XML/JSON data on the iPhone?

The following code works, but it's ugly and creates a bunch of autoreleased objects. I'm using similar code for parsing reserved HTML characters as well (for quotes, & symbols, etc). I'm just wondering... Is there a cleaner way? NSString *result = [[NSString alloc] initWithString:userInput]; NSString *result2 = [result stringBy...

How to get an xml file when running mstest

I have a class which loads an xml file using the following: Path.Combine( AppDomain.CurrentDomain.BaseDirectory, "Xml", documentName ); The documents that are being loaded are set to copy to the output directory. However, when I run mstest the xml file is not being copied to the BaseDirectory. Does anyone have any idea how I can acc...

In loaded object model prefix XmlDocument elements with namespace

I have a "plain" XmlDocument loaded like so: <root> <element1 /> <element2></element2> </root> and want to qualify the elements with namespaces like so while the object model is loaded <abc:root xmlns:abc="urn:something"> <abc:element1 /> <abc:element2></abc:element2> </abc:root> before writing it out. ...

XSD Restrictions based on target xml elements

Is it possible in xsd to create restriction based on elements of some type in target (processed) document? For example I have XML like this: <Pets> <Pet name="Murka" /> <Pet name="Browko" /> <Pet name="Tuzik" /> </Pets> <Children> <Child name="Petruk" favoritePet="Browko" /> </Children> so what I want to restrict the attribute "...

Retrieve XPath of an XML element by using its value

My XmlFile looks like this: <?xml version="1.0"?> <document-inquiry> <publication-reference data-format="docdb" xmlns="http://www.epo.org/exchange"&gt; <document-id> <country>EP</country> <doc-number>2160088</doc-number> <kind>A1</kind> </document-id> </publication-reference> </document...