Hi!
I am using some XML parser to get some information from API, blah blah... :)
In one place in my script, I need to convert string to int but I'm not sure how...
Here is my object:
object(parserXMLElement)#45 (4) {
["name:private"]=>
string(7) "balance"
["data:private"]=>
object(SimpleXMLElement)#46 (1) {
[0]=>
strin...
A simple task: write an element two attributes:
String nsURI = "http://example.com/";
XMLOutputFactory outF = XMLOutputFactory.newFactory();
outF.setProperty(XMLOutputFactory.IS_REPAIRING_NAMESPACES, true);
XMLStreamWriter out = outF.createXMLStreamWriter(System.out);
out.writeStartElement(XMLConstants.DEFAULT_NS_PREFIX, "element", nsUR...
Hi,
I'm trying to find a way to get this working:
I use a Hudson Continuous Integration Server where I have some Maven builds. I've configured Findbugs for these builds and also the Graph plugin that shows me the Findbugs trend.
Now I've developed a maven plugin that creates an xml file with some values in it like:
<rootElement>
<na...
I am creating an xml file using this code:
XmlDocument d = new XmlDocument();
XmlDeclaration xmlDeclaration = d.CreateXmlDeclaration("1.0", "utf-8", null);
d.InsertBefore(xmlDeclaration,d.DocumentElement);
XmlElement root = d.CreateElement("ITRETURN","ITR","http://incometaxindiaefiling.gov.in/ITR1");
XmlAttribute xsiNs = d.CreateAttribu...
I need to Convert a CSV into an XML document. The examples I have seen so far, all show how to do this with a fixed number of columns in the CSV.
I have this so far, using LINQ:
String[] File = File.ReadAllLines(@"C:\text.csv");
String xml = "";
XElement top = new XElement("TopElement",
from items in File
...
Hello
I have stored procedure returning XML. XML returned not as parameter but as result of SELECT:
create procedure #xml_test
as
select 1 as a for xml raw
go
I'm trying to put this XML in a variable:
declare @xml as nvarchar(max)
But I can't find how to do it. My best idea was INSERT INTO ... EXEC, but I get error 'The FOR XML ...
I've got a table which has the usual ParentID, ChildID as it's first two columns in a self-referencing tree data structure.
My issue is that when I pull this out and use the following code:
DataSet set = DA.GetNewCategories();
set.Relations.Add(
new DataRelation("parentChildCategories", set.Tables[0].Columns["Catego...
I have a web service that has one method:
[WebMethod]
public bool SyncUserData(string userxml)
The xml is a series of user records and I use an XmlReader to read through the data and process it.
When I call the web service with 2000 records, it processes 2000 records.
When my client calls it with the same xml, it processes 1000 recor...
I'm trying to parse some xml in AS3, but the nodes I'm trying to call up are named keywords like 'name' and 'object'. Can I escape these words somehow?
...
Hello,
I can't find a way to convert some UTF8 encoding into NSString.
I get some data from a URL, it's a .xml file and here is their content:
<?xml version="1.0" encoding="UTF-8"?>
<person>
<name>Jim Fernández</name>
<phone>555-1234</phone>
</person>
How can I convert the & #225; into a á ?
some code that doesn't work:
NSSt...
Possible Duplicate:
RegEx match open tags except XHTML self-contained tags
Hi all,
I know how everyone loves a regex question, so here is mine. I have an XML tree within which some nodes contain CDATA. How do I return just a string containing the data?
Lets see an example
<xml>
<node>I'm plain text.</node>
<node><![CDAT...
How can i update bulk data in sql server 2005 by sending the data in XML form ?
i am able to insert bulk data into the table, but i am not getting idea to update the data.
...
Hey I am having issues parsing XML file,
Theres seems an unrecognised symbol after each new line. When im parsing this is Classic ASP and print out to screen it is appearing as "?" but when i do I.e replace(text,"?","LOL") its not replacing so its not a normal "?" I think.
How can I capture and filter out this symbol ?
Note this is do...
Here is my contrived example that illustrates what I am attempting to accomplish. I have an input XML file that I wish to flatten for further processing.
Input file:
<BICYCLES>
<BICYCLE>
<COLOR>BLUE</COLOR>
<WHEELS>
<WHEEL>
<WHEEL_TYPE>FRONT</WHEEL_TYPE>
<FLAT>NO</FLAT>
...
I have the following XML:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="disp.xsl"?>
<root>
<node type="a">
<value>4</value>
</node>
<node type="b">
<value>2</value>
</node>
<node type="a">
<value>3</value>
</node>
<node type="b">
<value>1</value>
</node>
</root
I want to produce a repor...
We're writing software for child sponsorship organizations that need to collect data in remote villages (no electricity). Our idea is to use a small device to enter childrens' names and when the agent gets back to an Internet cafe, they can upload the data.
Our thought is to use an XML file to store the data.
What device can you recomm...
I would like to test something and for it I need a complex XML file of decent size(few hundred kilobytes at least). Does anyone know where I can get such a file? Everything I've seen on the internet is short and simple examples.
By "complex" I mean I also want some form of relationships and nesting between elements of the file.
...
Hi everyone..
I have a menu with three industries and an "active" option:
<ul>
<li id="p_active"><a href="active.xml">Active</a></li>
<li id="p_education"><a href="education.xml">Education</a></li>
<li id="p_energy"><a href="energy.xml">Energy</a></li>
<li id="p_services"><a href="services.xml">Services</a>
</li>
</ul>
There are a nu...
Hi, i have the next instruction, in JavaScript:
var firstScene = document.evaluate('//Scene', document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null);
so my question is how to get the full path of the node firstscene?
...
Hi,
is any body aware of building xerces using icu library , when i am building it giving all icu related option on MacOS its never going for icu option ( it finally says ICU option can not be enabled in config.log ).
./configure --prefix=/tmp/xer --enable-msgloader-icu --disable-shared --disable-network --enable-static --disable-t...