I have an xml document like the following:
<menuitem navigateurl="/PressCentre/" text="прес център">
<menuitem navigateurl="/PressCentre/RegisterForPressAlerts/" text="регистър за прес &#...
I'm trying to write a schema that will validate the following XML:
<category type="rifles">
<item>
<name>
AK47
</name>
<description>
The USSR's chief export back in the day, and the guerrilla's best friend. On African flags than any other symbol.
</description>
<cost>
4000
</cost>
<image>
ak47.jpg
</imag...
Using Linq To XML, how can I get the space_id value (720) from the xml below?
I am reading this but I think the namespace in the xml is my stumbling block.
<r25:spaces xmlns:r25="http://www.collegenet.com/r25" pubdate="2009-05-05T12:18:18-04:00">
<r25:space id="VE1QOjRhMDAyZThhXzFfMWRkNGY4MA==" crc="" status="new">
<r25:space_id>...
Hi everyone,
I'm curious what your solution is for high performance XML parsing on the iPhone is, given its limited amount of CPU power. I have reviewed the XML Performance App that Apple provides as a demonstration, and it seems that for the data feed (300 iTunes songs) that they're parsing.. libxml2 always seem to come as the forefron...
I am trying to use YFrog's API. I think I am using it correctly to try and send a HTTP POST request that is of content type XML. However, as the response body, I am always getting a 404 error for some reason. Here is their API: http://yfrog.com/upload_and_post.php
Here is my attempt of PHP code to upload.
$data = array('media' => 'htt...
Is there a standard way of encoding SQL queries as XML? I mean something like
select name from users where name like 'P%' group by name order by name desc
might encode as (my 5-minute mockup, probably bobbins)...
<?xml version="1.0" encoding="UTF-8"?>
<query>
<select>
<table name="users">
<column name="name"/>...
How can I specify an XML schema for an instance document like this:
<productinfo>
<!-- other stuff -->
<informationset type="Manufacturer">
<!-- content not relevant -->
</informationset>
<informationset type="Ingredients">
<!-- content not relevant -->
</informationset>
</productinfo>
that is, a "productinfo" elemen...
Hi,
I am a newbie to web-services. What is a good way to learn web-services implementation using java, xml and spring? Are there any good books which cover this topic in good width?
Or, are there any online resources, tutorials, etc.?
Also, what would be good projects to understand this hands-on?
Any recommendations>?
...
I've instantiated a class that is serializable, and I'm serializing it to a file, but it is always putting the following attributes in my root element:
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
How can I stop that?
...
I am trying to parse a response from a SOAP web service, but part of the data has an invalid xmlns element and I think it is causing me no end of trouble.
The part of the XML that I am working with is as follows.
<soap:Body xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<ResponseData xmlns="http://www.example.com/WebSer...
I have to submit a HTML form to a 3rd party website and one of the hidden fields is an XML string. The XML needs escaping before it is sent to the 3rd party.
However when I add the plain XML to the form field it semi-escapes it for me. So then when I use HTMLEncode myself part of the XML is double-escaped. How do I prevent the automatic...
I am designing a WCF service which have some operations that i expose to get some data. These operations accept a xml document as a parameter. Is there a way that i can map the nodes of this document to the classes i have created to be used internally?
EDIT: One of the reasons i accept a xml document rather than a strongly typed object ...
I have a set of classes which hold only data (no operations have been defined in this class). How do i generate a xsd file for these classes?
...
Hi All,
I've got to edit an XSLT stylesheet, but I'm flying blind because the XML input only exists fleetingly in a bunch of streams. I can debug into the code, but can't figure out how to get the contents of the streams out into text I can look at (and run through the XSLT manually while I'm editing them).
The code is part of a big ol...
In XML, is it possible to reuse elements?
Specifically, the problem that I am trying to solve is the following. I want to define an element table that contains an element tableSchema and an element dataSource. I want to do this in a way that a tables can refer to a tableSchema defined elsewhere. Thusly, I can have multiple reports defin...
I have XML that looks something like this:
<Root xmlns="http://widgetspecA.com/ns">
...any...
<WidgetBox>
<A/>
<B/>
<SmallWidget> <!-- minOccurs='0' -->
...any...
</SmallWidget>
<Widgets> <!-- minOccurs='0' -->
...any...
</Widgets>
...any...
</WidgetBox>
...any...
</Root>
and I want t...
Hi
I am trying to update the value of a tag with Chinese characters. However it does not add the chinese characters. Instead it adds "???" .
e.g. update table set col.modify('replace value of (/tag/text())[1] with "我"') where ..
Any help is much appreciated
thanks
Ben
...
The latest I can find from the web and blogosphere indicate that Microsoft's XML team would be supporting XSLT 2.0 (now that it was a full blown W3C recommendation). I can't find anything beyond that.
What's the current status? Is it available in .NET 3.5 or are they stuck with XSLT 1.1 and pushing XQUERY and LINQ?
...
I am doing initial design work for the back end of a site that will use mainly Flash for the front end. I am not a Flash dev myself, and I don't care about general comments for or against Flash. What I want to know is:
What is the current state of the art in communicating with the server to use dynamic content? Is AJAX an option? Wha...
I'm looking for something like dom4j, but without dom4j's warts, such as bad or missing documentation and seemingly stalled development status.
Background: I've been using and advocating dom4j, but don't feel completely right about it because I know the library is far from optimal (example: see how methods in XSLT related Stylesheet cla...