Hi Guys,
I have a problem.
I have 2 php scripts, one which sends xml data using curl and one which is supposed to read the posted data.
The problem is the reciever script is not getting any of the elements in the xml.
Any help would be appriciated.
SENDER SCRIPT:
<?php
$xml = '
<SMS xmlns:xsi="http://www.w3.org/2001/XMLSchema-insta...
Assuming I have a SQL Server 2005 table with an xml column containing the following values:
CREATE TABLE XmlTest (
XMLid int,
Data xml)
INSERT XMLTest
VALUES ( 1 , '<data><item><type v="1" /><value v="12.56" /></item><item><type v="3" /><value v="DEBIT" /></item></data>' )
INSERT XMLTest
VALUES ( 2 , '<data><item><type v...
Hi there here is my xml file: (thefile)
<?xml version="1.0" encoding="utf-8"?>
<ArrayOfItem xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://nts-de-osm1-pxc/webservices/">
<Item xmlns:q1="http://systinet.com/wsdl/com/osm/webservices/service/" xsi:type="q1:Document">
...
Hello, I need help with this. I developing an iphone app and I need to connect to the server from diferents views. So I was thinking like in java or C, I mean, A possible solution is to create a class and embed the connections for the app. I write an example:
int ObjServer.ValidateUser(user:string,passwd:string)
NSMutableArray ObjServ...
I need to represent special characters like superscripts, copyright symbols etc in XML. What's the best way to do this?
I'm confused as XML defines 5 entity references for "<" , ">" etc. I always use < and > but could, or should, I use Unicode decimal, U+003C, instead? Or will an XML processor treat these the same as if I'd typed "<"...
Let's say we have an org.w3c.dom.Document representing the following XML:
<Fruits>
<Apples>
<Red/>
<Green/>
</Apples>
</Fruits>
If we know that the document always will contain a <Fruits> root with only one child (in this case <Apples>, but the name of the child is generally unknown), how can we make that child the root of...
Hello StackOverflow!
i need help, i have some data coming in xml, i want to make an object out of, do something with it, serialize it back and send it away...
but it must be some sort of custom serialization.
xml like:
<Animals Ver="12" class="1" something="2">
<Dog Ver="12" class="2" something="17">
<Name> a </Name>
...
I have a string that contains a xml structure and there are two pieces of data in separate tags that I am after.
xpath has been added since API level 8, and with me being stuck with API level 3 (old phone for you ;-)) I need a way to get the data.
Would using a regular expression commit a huge sin? ;-) The xml isn't that big...
Looki...
Hi all,
I am sure that I am not the first to encounter this conflict.
The code that I have inherited does the following:
org.w3c.dom.Document dom; // declaration
javax.xml.validation.Schema schema; // declaration
...
...
...
javax.xml.validation.Validator validator = schema.newValidator();
validator.validate(new DOMSource(dom));
w...
I have a program that is generating Xml Files from data out of a database. In short code it does the following:
string dsn = "a db connection string";
XmlDocument d = new XmlDocument();
using (SqlConnection con = new SqlConnection(dsn)) {
con.Open();
string sql = "select id as Id, comment as Comment from Test where ... ";
us...
I do not have much experience coding systems dealing with web-services. Please help me in solving following confusion.
One of my clients want me to build an iPhone App that had native UI controls but deals extensively with Web Services. Right from authenticating the user into a network to loading a list of users or anything related in t...
i've an xml file like
<Root>
<Steps>
<Step Test="SampleTestOne" Status="Fail" />
<Step Test="SampleTestTwo" Status="Fail" />
</Steps>
</Root>
i need to change or overwrite the attribute value of "Status" in the Step element.
Now i'm using XmlDocument for this
like
XmlDocument X...
I have an .xsd file stored as a resource in my vb.net project. I need to create an instance of the XmlSchema class using this resource. Any examples of creating an XmlSchema I can locate do one of the following:
Create the xmlschema by adding elements and attributes manually like this example.
Create the xmlschema using an XmlTextRea...
I am working on a custom PHP/MySQL CMS. The data managed in the CMS is exported to XML files via a PHP script that must be ran manually. A Flash/AS3-based front-end loads the XML files and displays the specified data.
Is it advisable to setup some sort of automated process for creating the XML files?
What are some "best-practices" or r...
I've created a program in java that starts as JNLP (Java WebStart). This program can connect to a webdav service at the server, the JNLP was started from.
The first webdav request results in a security warning that some code tries to open a connection to w3.org. I'm using a external webdav client library which creates a document interna...
how do I execute this xquery
for $elem in /root/element()
return
$elem
on an xml file using java without using fn:doc?
i keep getting
XPDY0002: The context item for axis step child::element(xml, xs:anyType) is undefined
--the rundown: I need a simple solution to load an xml file, load an xquery and process
...
Hi
I have a xml file that looks like this :
<?xml version="1.0" encoding="utf-8"?>
<config>
<node id="1" />
</config>
Now I try to deserialize it, but always get the error :
<config xmlns=''> was not expected
Anyone how to fix this ? I dont have any control over the xml.
Thanx
...
I have an XML Like below
<Row><Cell ss:StyleID="s245"><Data ss:Type="String">ABSOLUTE</Data></Cell>
<Cell ><Data ss:Type="String">Yellow</Data></Cell>
<Cell ><Data ss:Type="String">Exist</Data></Cell>
<Cell ><Data ss:Type="Number">30</Data></Cell>
<Cell ss:StyleID="s258"/>
</Row>
<Row><Cell ss:StyleID="s229"><Data ss:Type="String">PAR...
I have a problem in the manifest when i try to use this library (com.google.android.maps)
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.hellogooglemaps"
android:versionCode="1"
android:versionName="1.0">
<application android:icon="@drawable/icon" android:label="@string/app_name...
We have a process in which XML is transferred to us via ESMTP in an email body. The character set of the email body is specified as ISO-8859-1, and no encoding is specified for the XML. According to the protocol, the default is UTF-8.
The problem is our XML parser is throwing an exception when it encounters the ® character because it ...