im working with xml and linq.
I have 2 xml files both contain "ID" and "LANGUAGE"
I want to do a join based on where the both the ID and LANGUAGE are equal in both files
I have something like this:
var data=
from details in h_details.Descendants("ROW")
join inst in instance.XPathSelectElements("//Row")
on details.Element("ID").Value...
Is there a generic approach to data merge an xml file content (a template) with embedded XPath expression to an XmlDocument?
As an example, (please note this is just a simple example, i am looking for a generic approach)
File:
<root xmlns:dt="urn:schemas-microsoft-com:datatypes">
<session email='' alias=''>
<state>
<action>
<att...
I am supporting a legacy C++ application which uses Xerces-C for XML parsing. I've been spoiled by .Net and am used to using XPath to select nodes from a DOM tree.
Is there any way to get access some limited XPath functionality in Xerces-C? I'm looking for something like selectNodes("/for/bar/baz"). I could do this manually, but XPat...
I have a number rather large, complex xml documents that I need to loop through. An xmlns is defined at the top of the document however the url this points to is no longer available.
What's the best way to parse the file to get the important data from it using C#?
I tried to load it into a Dataset but would occasionally receive the err...
I have some XML which I'm trying to search:
<debts>
<section id="24" description="YYYYY">
<section id="28" description="xxx">
<section id="31" description="xxx">
<account accountNumber="2312323" creditorId="1" amount="1200" proposedAmount="1000" percentage="11" owner="2">
<foo/>
</account>
</s...
I have a document, something like this:
<root>
<A node="1"/>
<B node="2"/>
<A node="3"/>
<A node="4"/>
<B node="5"/>
<B node="6"/>
<A node="7"/>
<A node="8"/>
<B node="9"/>
</root>
Using xpath, How can I select all B elements that consecutively follow a given A element?
It's something like following-silbi...
Given this pipe, I'm trying to strip all HTML tags from -div class="post-text"- and return plain text.
In other words, for this stackoverflow question, the first item should return:
"Background: Over the next month, I'll
be giving three talks...
{...}
complex generic signatures (e.g. Enumerable.Join)"
Can anyone assist?
At ...
I have an XML document and associated schema that defines several attributes as having the xs:boolean type. The lexical values for xs:boolean are true, false, 1, and 0, so it seems that to correctly select attributes with a particular boolean value I'd have to write something like:
@attribute='true' or @attribute='1'
or
@attribute='f...
Hi all, iam trying to get all object's xpath's from loaded page via selenium
something similar to the funkction that selenium allready have:
selenium.getAllbuttons();
problem is that i cant use this funkction and work with id's because they are all dynamically generated every time when a new page is loaded.
Any ideas how to get all o...
I am loading HTML into DOM and then querying it using XPath in PHP. My current problem is how do I find out how many matches have been made, and once that is ascertained, how do I access them?
I currently have this dirty solution:
$i = 0;
foreach($nodes as $node) {
echo $dom->savexml($nodes->item($i));
$i++;
...
I want to use the wikipedia API to find the French pages including the ''Template:Infobox Scientifique'' missing in the english version. So, my idea was to process the following document with xproc:
http://fr.wikipedia.org/w/api.php?action=query&format=xml&list=embeddedin&eititle=Template:Infobox%20Scientifique&eilimit=...
If I have XML like:
<foo>
<bar id="1" score="192" />
<bar id="2" score="227" />
<bar id="3" score="105" />
...
</foo>
Can I use XPath to find the minimum and maximum values of score?
Edit: The tool i'm using (Andariel ant tasks) doesn't support the XPath 2.0 solution.
...
I got this XML document with an XML-string defined inside an element:
<HIT>
<FIELD NAME="xmlstring">
<?xml version="1.0"?>
<kontaktpersoner><person><funksjon><![CDATA[Økonomi]]></funksjon><tittel> <![CDATA[regnskapsansv.]]></tittel><email><![CDATA[[email protected]]]><...
Hi all I am using this function to get name's of the input fields from browser. Problem is that in couple of my sites input fields have the same position, so i cant cycle thrue them correctly. Any ideas how to do this cycle in some different way as thrue position?
Thank you.
public void hladame_fieldy ()
{
//fieldy
string n...
Given the following partial XML document:
<section>
<entry typeCode="DRIV">
<act classCode="AT" moodCode="DEF">
<statusCode code="completed"/>
</act>
</entry>
<entry typeCode="DRIV">
<act classCode="ACT" moodCode="DEF">
<statusCode code="completed"/>
</act>
</entry>
<entry typeCode="DR...
Is it possible to match attributes that do not belong to a subset of attributes? For example, I would like to match everything but @attr1 and @attr2. Is there a way to write a template match statement similar to the following, or am I going about this the wrong way?
<xsl:template match="NOT(@attr1) and NOT(@attr2)">
Thanks
...
There is some xhtml page, the source of this page was parsed before loading in the browser, to find some XPath positions. Then this page was loaded into browser, and i want via JAvaScript(on some action) insert some text in XPath positions, that already have been found. Problem is, that in JavaScript(jQuery) i can get only innerHTML (HTM...
I have two templates matching the same attributes, both with different modes (shown below). Is there a way that I can avoid writing the attributes twice, one for each template, and instead store those attributes in say a variable? So instead of the match statements below I would have a match like match=$styleAttributes, and styleAttrib...
Here is the my structure:
<AllCharges>
<Charge>
<ID>1</ID>
<Type>A</Type>
</Charge>
<Charge>
<ID>2</ID>
<Type>A</Type>
</Charge>
<Charge>
<ID>3</ID>
<Type>B</Type>
</Charge>
</AllCharges>
What I want back is the full structure but I only want results in which the Type = A. The hard part...
This should be an easy one but it is giving me trouble. Given this structure:
<root>
<a>
<b/>
</a>
<a/>
</root>
I'm trying to formulate an xpath expression that gives only the non-empty "a" elements, i.e. the ones that have child elements. Therefore I want the first instance of "a" returned, but not the second.
So far I h...