I've this xml
<root>
<node1>
<node2>xxx</node2>
</node1>
...
<node1>
<node2>yyy ABC yyy</node2>
</node1>
...
<node1>
<node2>zzz</node2>
</node1>
</root>
I want to get node1 that has a node2 containing the text ABC.
Is it possible to achieve this using XPath?
...
Using TDom, I would like to cycle through a list of objects in the following format:
<object>
<type>Hardware</type>
<name>System Name</name>
<description>Basic Description of System.</description>
<attributes>
<vendor>Dell</vendor>
<contract>MM/DD/YY</contract>
<supportExpiration...
DECLARE @mycur CURSOR
DECLARE @id int
DECLARE @ParentNodeName varchar(max)
DECLARE @NodeName varchar(max)
DECLARE @NodeText varchar(max)
SET @mycur = CURSOR
FOR
SELECT * FROM @temp
OPEN @mycur
FETCH NEXT FROM @mycur INTO @id,@ParentNodeName,@NodeName,@NodeText
WHILE @@FETCH_STATUS = 0
BEGIN
PRINT @id -- sample statements
PRINT @Pare...
is there a tool to generate a Swing form from xml code?
...
I am using orbeon to process my xforms. I am attempting to create a data grid that I can use to copy and paste rows/columns of data from my clipboard (excel).
Do you have any clue how I can implement this?
I just stumbled on the ajax dhtmlxgrid.
http://dhtmlx.com/docs/products/dhtmlxGrid/samples/12_initialization_loading/03_grid_int_f...
Hi,
Right now I'm tweaking Android app for mine client. And I want to use hint to give potential user some insight what kind of data I expect to put in specific field.
And here is a problem, when I'm adding
android:gravity="right"
for specific element hint message is disapearing.
This is really frustrating.
It is really small issu...
I am using java and I am pretty open to using w3c DOM or DOM4J at this point.
So lets say I have a Node like a text node that I have found something interesting in, like say an occurrence of a substring in the nodes text. If I want to get a string with a number characters preceding that node and a few characters after that node how may ...
I am having a lot of trouble with Reflection in C# at the moment. The app I am writing allows the user to modify the attributes of certain objects using a config file. I want to be able to save the object model (users project) to XML. The function below is called in the middle of a foreach loop, looping through a list of objects that ...
If I do
XPathDocument doc = new XPathDocument("filename.xml");
Does that load the entire document into memory? I'm writing a mobile phone app and the document might store lots of data that doesn't ever need to all be loaded at the same time. Mobile phones don't usually have too much ram!
...
I'm trying to parse this XML string:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<response type="success">
<lots>
<lot>32342</lot>
<lot>52644</lot>
</lots>
</response>
When I get the root node, which is "response", I use the method getChildNodes() which returns a NodeList of length 3. However what I'm con...
Hi StackOverflow Community!
First of all: I'm at Scala 2.8
I have a slight Issue while using pattern matching on XML elements. I know I can do smth. like this:
val myXML = <a><b>My Text</b></a>
myXML match {
case <a><b>{theText}</b></a> => println(theText)
case _ =>
}
This is the sort of example I find everywhere on the net ...
Take a look at the example code...
NodeList folderNodes = document.getElementsByTagName("Folder");
DocumentFragment node = (DocumentFragment) folderNodes.item(0);
It was very easy to do "getElementsByTagName" on the document but when I want to do this again on the DocumentFragment it seems I cannot. How do I go about furthering t...
It feels dirty. But maybe it isn't... is it ok to use a StringBuilder for writing XML? My gut instinct says "although this feels wrong, it's probably pretty darn performant because it's not loading extra libraries and overhead it's not doing whatever extra method calls XmlWriter invokes." It also seems like it's just less code in general...
Hello,
Let's say I have a pdf form file available at website which is filled by the users and submitted to the server. On the server side (Asp.Net) I would like to merge the data that I receive in xml format with the empty pdf form that was filled and save it.
As I have found there are several possible ways of doing it:
Using pdf for...
Im using an ant build file that has been generated by android. Our Android application requires a JAR file that lives inside the lib folder of our project, so I need to adjust the classpath that ant is using when it builds stuff.
When I run:
ant -lib lib debug
the project builds just fine, but this should really be inside the build f...
I have an XSD which was transformed from a RELAX NG schema with a few errors I am trying to fix. The big issue I have it with the following
<xs:element name="list">
<xs:complexType>
<xs:sequence>
<xs:choice>
<xs:sequence>
<xs:element minOccurs="0" ref="preamble"/>
<xs:element minOccu...
I have a variable in xQuery of type xs:string with the value of an encoded HTML snippet (the content of a twitter tweet). It looks like this:
Headlines-Today • AP sources:
<b>Obama</b> pick for
Justice post withdraws : News - Rest
Of World - <a
href="http://shar.es/mqMAG&quot;&gt;http://shar....
I have an html-like xml, basically it is html. I need to get the elements in each . Each element looks like this:
<line tid="744476117"> <attr>1414</attr> <attr>31</attr><attr class="thread_title">title1</attr><attr>author1</attr><attr>date1</attr></line>
My code is as below, it does recognize that there are 50 in the file, but i...
I'm trying to parse an XML file and create an object array from its data. The data is converted to MediaAlbum classes (class of my own). The XML is parsed correctly and the object is loaded, but when I instantiate it, the Albums array is of zero length, even when the data is loaded correctly.
I don't really know what the problem could b...
I'm trying to find an xmlHttpRequest or similar resource that I can query directly to obtain an xml file for my own purposes. At this site it is possible to browse a Google Map mashup with markers. Unfortunately it is only possible to view all markers at a small view range, whereas I simply want to obtain all the information at once fo...