I'm parsing large XML document using pull parser (org.xmlpull.v1.XmlPullParser). When I reach specific node I want to grab it and all its children as chunk of text (or just children is OK too) and save as String. What would be efficient way of achieving this? Anything better than (in essence) buffer.append('<').append(xpp.getName()).appe...
Hi guys,
How can I choose it's position based on it's sibblings when I add a child node ?
Here is an example :
<?php
$_XML = ' <Test>
<Menu>
<Link href="page1.htm" />
<Link href="page2.htm" />
<Link href="page4.htm" />
...
I am trying to create an XSD schema file from an existing XML file but am getting errors. Currently I am trying to use the XSD command prompt tool to generate the XSD file. Any advice on mistakes with my XML file? Or any other tools I should try instead? Here is my XML file:
<xml xmlns:s='uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882'
...
Is there a way to create just one XSD file from the below XML file? I have tried various tools but they all produce multiple XSD files. WHat is the cause of multiple XSD files? I need just one XSD file to load in SSIS.
<xml xmlns:s='uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882'
xmlns:dt='uuid:C2F41010-65B3-11d1-A29F-00AA00C14882'
...
I just finished an app to import a fairly simple XML data file into a db. The app works fine but I'd like to know how I should handle a bad XML file. For example, the user selects an XML file that has a different layout than what is required for my app. Eventually, I'd also like to add the ability the select multiple files to be imported...
How could i inflate my custom view using the main.xml file? I thought it carried the format of
<com.blah.project.MainClass.innerClass />
but I cant seem to get the fully qualified name of my inner class right. My customView is inside of my Main.java file, anyone know how I could properly reference it? Thank you.
...
Hey,
Have had this happen alot, I forget to select the .java file before running an android app from Eclipse.
I have a .xml selected, press Run and the projectfile breaks.
How do I fix it?
...
how can i parse element like this example
<?php
$xmlstr = <<<XML
<?xml version='1.0' standalone='yes'?>
<movies>
<movie>
<title>PHP: Behind the Parser</title>
<characters>
<character>
<name>Ms. Coder</name>
<actor>Onlivia Actora</actor>
<actor:view id='44' />
</character>
<character>
<name>Mr. Coder</name>...
I have devices. Each one sends data to (server IP-address) over a particular port in a random time. Because it's an alarm device and it’s possible that more than one device fired in the same time.
The data is in XML Format.
Now I already got a small windows application which listen for the data But I got a few problems
problem is that...
I need to process loaded from ResponseStream on Async callbacks XML progressively.
Reply is have:
<root>
<node ...>
.....
</node>
<node />
...
</root>
schema, and i need to have ability process <node>'s before they arrive complete.
Is there normal way to parse it using standard .NET?
...
The following is used to generate an msiexec command with nant:
> "<exec program="msiexec"
> timeout="1800000" verbose="true">
> <arg line="/i "${server.msi}"" />
> <arg line="TARGETDIR="${server.target.path}""
> />
> <arg line="INSTALLDIR="${server.target.path}""
> />
> ...
Hello,
I'm tryng to serialize an object to XML by using C# with the following code:
memoryStream = new System.IO.MemoryStream();
Serializer.Serialize(memoryStream, this);
memoryStream.Seek(0, System.IO.SeekOrigin.Begin);
streamReader = new System.IO.StreamReader(memoryStream);
...
A user can select a performance, so the performance elements have unique ID's. I want to basically say:
Select all reservations->reservation['seat'] FROM performances->performance['id=2'].
Hope that makes sense, I really am struggling with selections in simple XML.
Thanks in advance, Henry.
<performances>
<perform...
I want to parse some XML in a C and C++ app. This app is deployed to Windows and Linux. What is an XML library that is likely to be installed on many Linux distributions and is readily available on Windows?
From my samples of Linux distros, libxml2 seems to be fairly common, but is there a more common xml library?
...
I have an xml file :
<?xml version="1.0" encoding="iso-8859-1"?>
<Configuration>
<Parameter2>
</Parameter2>
</Configuration>
and I'd like to add following part to my xml file between <Configuration> and <Parameter2> parts.
<Parameter1>
<send>0</send>
<interval>0</interval>
<speed>200</speed>
</Parameter1>
...
I've been living in the desktop world for most of my career, so forgive me for asking such a basic question, but I'm not quite sure where to start looking.
I want to return some raw data along with my HTML, and parse and display the data using jQuery as soon as the HTML is ready. I know roughly what my js code should look like, but I'm ...
I asked an earlier question which was definitely helpful and let me know about JSONP. However, I see that I have to specify JSONP as the datatype. Now, as far as I know, that is the return type of the data coming back, which would be XML. Can XML be returned using JSONP or am I limited to it coming back as JSONP format? Thanks!
...
Following my last question again; This small script is supposed to grab my twitter friends feed and store the xml as a string. However, it keeps outputting all of the data (minus the xml, actually) to the browser. What am I doing wrong?
<html>
<head>
<title>Twitcap</title>
</head>
<body>
<?php
function twitcap()
{
// Set your us...
Given is following XML file:
<root>
<customers>
<customer name="CustomerA" orders="111,222" />
</customers>
<orders>
<order ID="111">
<description text="Some bananas ..." />
</order>
<order ID="222">
<desciption text="good coffee" />
</order>
</orders>
</root>
Now I want to validate the ord...
I want to be able to generate html pages where some parts of the html should depend on some parameters.
My idea is that I could have a template like OneMailTemplate.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>MailTemplate</title>
<meta http-equiv="Content-Type" content="text/html...