I'm having a heck of a time with transforming a simple SQL Query into a LINQ query(using vb btw)
Here is my SQL:
SELECT USRDEFND5
FROM int_gp_employee
GROUP BY USRDEFND5
The xml looks like this:
<int_gp_employee>
<row>
....
<usrdefnd5>Some GUID</usrdefnd5>
</row>
</int_gp_employee>
I've tried a number of di...
Hi All,
I have always been using jaxb for parsing XML files into java object. This requires generating the java source code from the xsd schema at compiletime.
Now, what if the application needs to parse xml files at runtime which are unknown at compiletime, i.e. provided by users for example ??
David
...
I'm using ActiveResource to consume a REST service. The xml from the service looks like:
<Person>
<FirstName>Kevin</FirstName>
<LastName>Berridge</LastName>
</Person>
ActiveResource parses this just fine, but it uses the names verbatim. So the model class will look like:
p = Person.find(1)
p.FirstName
p.LastName
I would much ...
My client's system needs to access private photos from their Flickr account using the flickr.photos.search API call. I set it up and got the generated URL for that call. When I visit that URL in the browser, it outputs XML like it should.
(API reference: http://www.flickr.com/services/api/flickr.photos.search.html)
However, in PHP I wa...
Hi,
I have an application that stores xml documents inside a column on SQL Server. The structure of the XML document is similar to the one below:
<document>
<item>
...
<phoneNumber>0123456789</phoneNumber>
....
</item>
<item>
...
<phoneNumber>9876543210</phoneNumber>
....
...
I have an xml document of the bible
as
<bookcoll>
<book>
<bktshort>Matthew</bktshort>
<chapter><chtitle>Chapter 1</chtitle>
<v>The book of the generation of Jesus Christ, the son of David, the son of Abraham.
</v>
<v>Abraham begat Isaac; and Isaac begat Jacob; and Jacob begat Judas and his brethren;
</v>
..
</chapter>
<chapter><chtitl...
Can I include characters such as "ã" and "ê" in UTF-8 encoded XML, or must it be UTF-16 encoded?
...
I'm trying to use Report Builder 2.0 to query a Sharepoint List using an XML data source. I explicitly list the fields I want returned because otherwise I don't get all of them, due to some of them being null sometimes. However, one of the fields I need has a space in its name. If I do a query where I don't explicitly specify fields, ...
I'm trying to use XML to convert the code that a Flex RTE creates to valid HTML. No problems on other HTML elements, but difficulty with unordered lists. I created a solution for moving consecutive LIs into a UL node. After trial and error, I came up with the following solution. My question is - surely there's a better way to do this...
What do I need to do in either my C# code or my XML document so that the XDocument parser reads literal whitespace for Values of XElements?
Background
I have an XML document, part of which looks like this:
<NewLineString> </NewLineString>
<IndentString> </IndentString>
I'm adding the values of each XELement to a...
Hi Gang,
I have event entries in a php application with a permalink structure for the events. I'm creating a dynamic xml sitemap for google et al. which creates new url nodes as events are added, and when an event is in the past, the priority level automatically gets adjusted downward.
My question has to do with 404 not found errors...
Hi everyone,
I'm trying to generate some graphs with prefuse, and it seems like the easiest way to load the data into prefuse is to use a GraphML file.
Is there an easy way to write these files from my data?
Or is there an easier way to load my data into prefuse?
Thanks
...
Hi there,
I'm trying to read an xml file into python, pull out certain elements from the xml file and then write the results back to an xml file (so basically it's the original xml file without several elements). When I use .removeChild(source) it removes the individual elements I want to remove but leaves white space in its stead making...
I have some XSD that looks something like this:
<element name="a">
<complexType>
<sequence>
<element name="b" type="t:typ" minOccurs="1" maxOccurs="unbounded" />
<element name="c" type="t:typ" minOccurs="1" maxOccurs="unbounded" />
</sequence>
</complexType>
</element>
How would I change it so that instead of a...
Response example for MD5 hash found, for example http://md5.noisette.ch/md5.php?hash=2a0231531bc1a7fc29e2fa8d64352ae9 :
<md5lookup>
<hash>2a0231531bc1a7fc29e2fa8d64352ae9</hash>
<string>noisette</string>
</md5lookup>
Response for MD5 hash *not* found, for example http://md5.noisette.ch/md5.php?hash=11111111111111111111111111111111 ...
Values of type xsd:dateTime can have a variety of forms, as described in RELAX NG.
How can I parse all the forms into either time or datetime objects?
...
I am having trouble serializing an object to xml.
I have one class that serializs fine:
public class GlobalInfo
{
public string Ripper = "";
public string Lineage = "";
}
I have the code that serializes it here (GlobalInfoData is an instance of GlobalInfo class above)
System.Xml.Serialization.XmlSerializer x = ne...
I can't seem to find anything other than XDocument.Descendants () in the documentation. Is there any way to do this?
...
Using BeautifulSoup to parse my XML
import BeautifulSoup
soup = BeautifulSoup.BeautifulStoneSoup( """<alan x="y" /><anne>hello</anne>""" ) # selfClosingTags=['alan'])
print soup.prettify()
This will output:
<alan x="y">
<anne>
hello
</anne>
</alan>
ie, the anne tag is a child of the alan tag.
If I pass selfClosingTags=['alan...
I have an XML File with the following format:
<containers>
<container>
<item>
item name
</item>
<item>
item name
</item>
<item>
item name
</item>
</container>
<container>
<item>
item name
</item>
</container>
<...