I just ran into an issue where my code was parsing xml fine but once I added in a second node it started to load incorrect data. The real code spans a number of classes and projects but for the sample I've put together the basics of what's causing the issue
When the code runs I'd expect the output to be the contents of the second Task n...
We have a swf banner with buttons/links on our site header.
When our customers DO NOT enter the "www" before our URL
the banner links do not work - do not forward to the page.
When our customers enter the "www" in the URL
It works.
First Thoughts,
Is it a security setting in the browsers? I tried the latest version of firefox, chro...
Hi!
How do I find the number of children of the root element in an XML document using PHP and SimpleXML?
DLiKS
...
Hi all.
I am designing an API for my webapp.
I was thinking to support only JSON responses (not XML) because more streamlined.
But I have just bumped to this XML:
<folders>
<folder id="123" private="0" archived="0" order="1">Shopping</folder>
</folders>
and I was wondering how the corresponding JSON would be. I have the feeling...
I have an xml file
<RTT>
<AgencyList>
<agency Name="Bart" Ditection="Outbound">
<RouteList>
<Route Name="Fremont" Direction="test">
<Stop ID="25" Name="BayFare"/>
</Route>
<Route Name="SFO" Direction="Test"/>
<Route Name="SFO" Dir...
Hi,
I am populating jQuery accordion from simple xml file, I can get my data and append it as html to simulate accordion markup. Then I call for accordion, it won't work!
I guess the problem is binding newly created data to DOM, I have tried .live() and .delegate with no success.
How should I proceed?
Here is simplified example of my...
My XmlReader instance created by factory method XmlReader.Create(..) is including entity references along with surrounding text into one complete blurb of type XmlNodeType.Text (It's actually unescaping the entities into the text).
For example if the XML source contains <div>this & that</div>
XmlReader will parse out
readerInstanc...
I'm converting a set of XML documents from one format, which doesn't include namespace prefixes, to another, which does.
Everything is relatively straightforward, but it's a bit repetitive in the XMLNS output. Below is an example.
(Very Simple) Input XML
<?xml version="1.0"?>
<a/>
XSLT
<!-- xmlns="http://www.w3.org/1999/xhtml" -->
...
I am querying a soap based service and wish to analyse the XML returned however when I try to load the XML into an XDoc in order to query the data. am getting an 'illegal characters in path' error message? This (below) is the XML returned from the service. I simply want to get the list of competitions and put them into a List I have setu...
Hi.
I have a layout that contains several sub-views all which set height like:
<View android:layout_width="fill_parent"
android:layout_height="18dip"
android:background="#ff000000" />
How can I retrieve the value stored in layout_height in code?
Ultimately, what I would like to do is being able to adjust the size defined in ...
Hello,
I'm developing an xml schema for xml that looks sth like this:
<sync name="Zlecenia" requires="Klienci" direction="OneWayToSource">
<source>
<table name="vwCustomer">
<field name="FirstName" />
<field name="LastName" />
<field name="Name" />
<field name="Company" ...
When editing xml, xml.vim works great for tag close. But when editing html, it does not work. Vim version is 7.3
...
Hey i am developing an iPhone app of a existing PhP mySQL website. i want to know, how to pull data from database and display on the phone?
after going through several articles , i found out two ways..
1) create a web service, on server end, which will provide all the data in XML format to the device.
2) export php,mysql data in JSON f...
Hi,
I'm looking for a library which will enable me to visualize some xml entities I have, and manipulate them graphically (something similar to a UML design package, but simpler), like a cyclic flow graph.
Anybody have any ideas where I should start? Preferrably I would like something managed, but if it's easier to do a HTML+JS impleme...
I have created an object called Project that has different properties (strings and some custom objects), I have bound text fields to these properties to get user input. I have created a method that outputs this object to an XML file. However when I import this XML file back into memory the text fields do not become populated with the tex...
Hello,
I am trying to write a program in android that does a lot of string and xml parsing.
I need suggestion of which way to go :
Use JNI and implement parsing in C++ and use C++ xml SAX parsing (Android - NDk)
Go with java and parse xml with SAX
...
I can't manage to get my textSwitcher to be able to support superscript text. No matter what I try it shows up as regular size text.
Here is what I've tried:
Spanned span = Html.fromHtml("<sup>TM</sup>");
String subscript = span.toString();
mSwitcher.setText(getText(R.string.desc_about1) + subscript);
Then I ...
I need comment my function prototype (written in C/C++) with summary, returns, param tags. How can I persuade Visual Studio to insert xml tags after three forward slashes like in C#? I found one solution. When I rename xx.h xx.cs in C++ project, I can use /// for generating xml comments (IntelliSense in xml comments works too). There mus...
Hello all,
i cannot figure out why Enumeration does not yield any results
Dim Configuration = From Setup In XElement.Load("C:\xml\setup.xml").Elements("settings") Select Setup
For Each Setting As String In Configuration
'Do something
Next
And here is the Xml file located at C:/xml/setup.xml
<?xml vers...
I'm getting an error from this Twitter script that is causing the rest of the page to not load. Not sure why suddenly this is happening, where it was functioning properly for quite some time.
The script looks like this, and it pulls the users current status:
<?php
$response = new SimpleXMLElement('http://twitter.com/users/show/tuscar...