Hello,
i'm building an app that will read rss feeds and will present them in UITableViews. I searched on google and here and ai decided to use LibXML.
When my app starts it checkes if it has a valid internet connection, and grabs an rss feed from which i extract some data and i make an uiTabBar with tableViews. after parsing the first ...
Hey guys, I want to parse some xml but I don't know how I can get the same tags out of 1 element.
I want to parse this:
<profile>
<name>john</name>
<lang>english</lang>
<lang>dutch</lang>
</profile>
So I want to parse the languages that john speaks. how can I do that ?
...
I'm parsing an XML document into my own structure but building it is very slow for large inputs is there a better way to do it?
public static DomTree<String> createTreeInstance(String path)
throws ParserConfigurationException, SAXException, IOException {
DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstanc...
I'm probably doing something realy stupid but I cant get this to work:
var xmlQuery = from i in doc.Descendants("Item")
select new TriggerItem()
{
CreatedDate = DateTime.Now,
ItemIdentifier = i.Attribute("itemCode").Value,
Name = i.Attribute("name").Value,
ProductIdentifier = (i.Attribute("productCode") != null) ? i.Attribut...
This is an issue that recently came up for me while writing a new XSLT for some XML generated by an application with XTHML embedded using CDATA. Normally I've been able to use disable-escape-output to render the results correctly.
However, in Firefox, everything was being displayed as escaped (i.e. &) as opposed to rendering as expe...
I'm parsing an XML document into my own structure using DOM, but in another question I was advised to use SAX, how would I convert the following:
public static DomTree<String> createTreeInstance(String path)
throws ParserConfigurationException, SAXException, IOException {
DocumentBuilderFactory docBuilderFactory = DocumentBuilde...
What are the ways of producing XML in Java?
Simple question, multiple answers possible.
I'd like a small discussion about the pros and cons of the various methods, as it seems the current community's opinion is very focused: any way but not with println(). Why? Can you explain it?
To make my question more community wiki, I'd also lik...
Hi there,
My gateway sends(posts) my server an xml datafeed when a purchase is made. The XML looks something like this:
<?xml version='1.0' standalone='yes'?>
<foxydata>
<datafeed_version>XML FoxyCart Version 0.6</datafeed_version>
<transactions>
<transaction>
<id>616</id>
<transaction_date>2007-05-04 20:53:57</transaction_date>...
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...
Anyone know of any Perl module to escape text in an XML document?
I'm generating XML which will contain text that was entered by the user. I want to correctly handle the text so that the resulting XML is well formed.
...
I am trying to write a parametrized query in SQL server that uses a parameter value as part of the XPath, however it does not seem to work the way I would expect it to. Here is my sample:
create table ##example (xmltest xml)
declare @LanguagePath varchar(75)
set @LanguagePath = '(/languages/language[@id="en-US"])[1]'
insert into ##ex...
I'm trying to write a generic XML to Core Data parser using libxml2. Since I have control over both, the XML elements correspond exactly to the objects and the attributes to the properties of the objects. This is all fine and everything works well, except when the attributes are of a type other than NSString. I realize that selectors k...
I'm using XmlSerializer.Serialize, and it produces line breaks and unnecessary spaces. How to avoid it?
...
I am parsing some XML with the elementtree.parse() function. It works, except for some utf-8 characters(single byte character above 128). I see that the default parser is XMLTreeBuilder which is based on expat.
Is there an alternative parser that I can use that may be less strict and allow utf-8 characters?
This is the error I'm gett...
I'm developing a simple application that fetches some data from wowarmory.com. What I need to do is fetch reputations for a character. I know where's the api located:
http://www.wowarmory.com/character-reputation.xml?r=Realm&cn=CharacterName
I can fetch the XML and load it into the SimpleXML object but I'm having trouble figuring ...
I've been tasked with converting some text log files from a test reporting tool that I've inherited. The tool is a compiled C# (.NET 3.5) application.
I want to parse and convert a group of logically connected log files to a single XML report file, which is not a problem. The System.Xml classes are easy enough to use.
However, I also w...
I'm working on a project that performs physiological simulations using mathematical models. We currently use models defined in MML, JSim's Mathematical Modeling Language, since JSim widely used by researchers. Basically, a model contains variables (with a formula, initial value, and optional units) and constant parameters (with a value a...
I love jQuery. I am probably going to have some XML parsing and manipulation using C#. It would be a piece of cake doing it in jQuery.
Is there a C# library that implements jQuery's functionality?
...
I have an existing web service that returns XML responses and I would like to add some new methods that return JSON. Do I have to create a separate web service that returns in JSON or can I have a mix?
If I use the ResponseFormat = WebMessageFormat.JSON I need to have the service annotated with [DataContractFormat] but I cant seem to ha...
Is there a way to automatically go to a URL returned via XML from an API call? For instance I call and it returns the XML file that I parse with simple_xml_load() and then I create a link like so,
<a target=_blank href='" . $title->links->homedetails . "?scrnnm=Nexus-Software'>".
$title->address->street . "</a>
But I do not want the...