xml

Cloning rapidxml::xml_document

How do I get a complete copy of a RapidXML xml_document? There is a clone_node function; how to use to to create a complete copy of an existing document? ...

How to insert xml into Mysql?

Hi, this questions looks really easy but I'm a noob in C++ and MySQL so it still doesn't work. Here is the deal: I have a string (_bstr_t) that contains the xml and I want to store it in a longblolb column in MySql. Ways I tried that failed: write my xml on a local file and use mysql command LOAD_FILE, this worked localy but not on...

Prevent XmlTextReader from expanding entities

I am trying to read a XML document without expanding the entities, do some manipulations to it, and re-save it with the unexpanded entities as they were initially. When using the XDocument directly, it fails to load, throwing an exception tell me it has unexpanded entities: XDocument doc = XDocument.Load(file); // <--- Exception // .....

how to apply XML signature on outgoing SOAP messages

Hi, I have generated stubs and bindings using cxf codegen. Everything runs fine however the server still rejects the message because of security issues. Basically I have 3 layers to take care all of which require certificates (which I have). SSL Encryption on the pipe certificate signature on specific data element certificate XML Si...

Saving a change to attributes in a pre-existing XML file using AS3

So here's the situation: I have an XML file that is holding a short list of nodes, all of which have two attributes associated with name and a score. This file is already loaded into flash and creates a high-score table, of sorts. Now, what I want to do is to be able to grab data collected in the application, use that to change some at...

Consuming object of ComplexType through PHP SoapClient

I'm trying to consume a soap feed using the PHP SoapClient and convert it to an array. It works great until I run into an object that is a complexType. Then it returns... [0] => stdClass Object ...instead of showing the multiple elements that are displayed when I access the SOAP feed otherwise. I'm very new to SOAP, so any help is ap...

how do i increase the size of this SVG?

http://upload.wikimedia.org/wikipedia/commons/a/a5/Map_of_USA_with_state_names.svg is it possible to increase the size of this map? ...

XML for User Interface Definition

I'm looking for information to choose a XML for User Interface Definition to build UI in new project. The project's objective is running in both web and desktop environments and support cross-platform. Therefore I focus on XUL and XForms but I'm not familiar with the XForms. Please give me some advices, what are cons and pros and the fut...

Extract XML embedded in another XML using PugiXML

Is there an easy way in PugiXML to unescape and load an XML embedded in another XML. ...

Interoperable way to send XML data in WCF?

Hi, I'm using System.Xml.XmlElement as a parameter for sending XML data in WCF. Is this generally the interoperable way to send XML data in WCF, so that, for example, a PHP or Java Web Service will understand it if I'll send it from a WCF Client? I've read that I should never send XML directly as string in WCF. In WSDL generated by W...

Using Delete call through API in PHP

Hello, We have a wiki that was designed by a 3rd party developer. The problem we have had is that users' who have been made "inactive" still show up in searches. The work around to stop user from being seen is removing properties associated with that user. To access the user properties, we would make a call to api passing a url encoded...

Retrieve xml from MySQL

Hi all, I'm a noob at C++ and MySQL and I only want to retreive a xml file stored as a longblob in MySQL. I did a SELECT query to get the content and after I store this content in a xml file with std::ofstream. With this i get: <?xml version="1.0" encoding="UTF-16"?> <AnObject noNamespaceSchemaLocation... instead of this: <?xml vers...

what does "When <simpleContent> is used, the base type must be a complexType whose content type is simple..." mean?

heres the whole error I keep getting from xerces.... When is used, the base type must be a complexType whose content type is simple, or, only if restriction is specified, a complex type with mixed content and emptiable particle, or, only if extension is specified, a simple type. 'string' satisfies none of these conditions. I thought ...

Deserializing xml with dynamically loaded assembly

Hello, I have a problem with xml-deserialization and dynamically loaded assemblys. I load my assembly directly from a zip-file to a byte array. Then i load this assembly. The assembly contains a data-model, which should be deserialized with XmlSerializer. The problem is that I always get an TypeInitializationException, if i try to load ...

XPath Performance in .NET with Positional Predicates

Given the XML <PSG> <C id="1"> <N id="2" > <A id="3" /> <D id="4"> <PP /> </D> <V id="5" > <Tn /> <P /> </V> <N id="6" > <D id="7" /> <D id="8" /> </N> ...

Linq to XML Get the next node of the same name

Here is my XML <assets> <asset> <metadata Id="ItemType" Value="Image"/> <metadata Id="ItemUri" Value="http://blah.png"/&gt; </asset> <asset> <metadata Id="ItemType" Value="Image"/> <metadata Id="ItemUri" Value="http://blah2.png"/&gt; </asset> </assets> How do I get the 2nd <metadata>'s v...

XSLT grouping continued - xPath issue??

Dimitre was a big help earlier... this is kinda like part two. :) I've been wracking my brain and still don't see it. Now that I'm able to isolate the Brands of the xml example below, now I'd like to isolate all the Product-Type's of the given $Brand in much the same way as I was able to isolate all the Brands. xml example (one member...

can we validate date from XSD in MM-DD-YYYY format ?

can we specify MM-DD-YYYY format date restriction in XSD on element which we want to restrict ? ...

JAXB to be create a map from XSD

When JAXB generates this, it create the OtherProperties as a List. How can I configure the XSD so it is generated as a Map? <xsd:element name="OtherProperties" minOccurs="0"> <xsd:complexType> <xsd:sequence minOccurs="0" maxOccurs="unbounded"> <xsd:element name="Property"> ...

How To Post XML via JavaScript to REST API?

Hi there. I'm trying to POST XML via JavaScript to a REST API. The Request Data looks like this: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <EditGame xmlns="http://blahblahblah.com" > <playerCount>2</playerCount> <score>2621440</score> </EditGame> How do I define the postString above if my code looks like this below: ...