I have noticed jQuery (or is it Firefox) will turn some of my <span class="presentational"></span> into <span class="presentational" />
Now my question is, is this okay to write my markup like this? Will any browsers choke on it?
Personally, I think it looks cleaner to do <span class="presentational" /> if it's going to be empty.
Than...
As the question says, it just escaped my memory how to display xml in javascript, I want to display some source xml within an div on a page, that sits next to the processed result of the xml in another div.
Can't remember if there was an equivalent to javascript's escape to convert entities on the client
Note: the xml files are served...
When is a good idea to save information in a XML file and when in a own-format file?
For XML (or other standard) I see:
(+) Standard format.
(-) It's tedious to hand modify.
For own-format files I see:
(-) We need to build a own-parser (non-standard).
(+) It can be easy to hand modify the files.
...
Hello everyone!
Talking about schema definitions, what are you used to doing:
put everything inside a unique and big bang XML schema?
use a domain modularization approach, putting all entities that referes to the same context together?
or just use a schema per entity?
I´ve read in a best practice document from a famous/private integ...
I have some XML in an XmlDocument, and I want to display it on an ASP.NET page. (The XML should be in a control; the page will have other content.) Right now, we're using the Xml control for that. Trouble is, the XML displays with no indentation. Ugly.
It appears that I'm supposed to create an XSLT for it, but that seems kind of bor...
Hello,
I need some help with XSLT syntax. Here is my scenario, I have an XML file that needs to be transformed in to a different look and feel of XML file, I have several sections where if particular node set don't contain any value the whole section shouldn't be processed.
Here is an example of XML:
<Dates>
<Date>
<VALUE1></V...
I have an application into which users can upload an XSD to describe certain kinds of user data. The application needs to parse this XSD to correctly initialise various bits of database metadata (e.g. translating xs:enumerations into lists of permitted values that will populate drop-down lists). The same user-entered XSD is also used to ...
Problem: Customer X has requested that pages using XML DataBinding and Databound tables in MSIE be re-factored to work cross-browser.
Question: What is the best-practice way to mimic the MSIE DataBinding feature of MSIE cross-browser (i.e., in both MSIE and Firefox).
Features: Customer X already gets the following using MSIE DataBindin...
Ok another WPF question, well I guess this is just general .NET. I have an xml document retreived from a URL.
I want to get multiple values out of the document (weather data, location, some other strings).
When I use the XmlTextReader I can call my method to pull the values out. The first time I pass the method to search for the xml no...
A strange thing happened after a supplier changed the XML header a bit. I used to be able to read stuff using xpath, but now I can't even get a reply with
$xml->xpath('/');
They changed it from this...
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE NewsML SYSTEM "http://www.newsml.org/dl.php?fn=NewsML/1.2/specification/NewsML_...
Hi there,
I'm using GDOME.pm and in my script I have this line:
my $doc = XML::GDOME->createDocument("","","");
I can't for the life of me figure out why it's coming out with this error:
NAMESPACE_ERR at /usr/lib/perl5/site_perl/5.6.1/i586-linux/XML/GDOME.pm line 103.
which basically points to:
sub createDocument {
my $class = ...
Working on a movie website and would love to find an API that I could use to get information about different movies. I code in PHP but I'm assuming this would probably return XML.
...
<xsl:template match="foo">
matches the foo element in the null namespace.
<xsl:template match="*">
matches any element in any namespace.
I tried:
xmlns:null=""
...
<xsl:template match="null:*">
but it's illegal to declare a prefix for the null namespace.
So how can I match an element with any name in the null namespace?
...
We have a legacy app that uses MFC's CArchive. I am researching saving the data in XML vs. binary. I have looked several libraries such as:
Boost
http://www.codeproject.com/KB/XML/xmlize.aspx
http://www.ucancode.net/faq/Visual-C-MFC-XML-Example.htm
http://www.codeguru.com/cpp/data/data-misc/xml/article.php/c4567
They are nice, and of...
Hi folks,
I am creating a java class that will search a directory for xml files. If the are some present it will use JDOM to parse these and create a simplified output outlined by the xslt. This will then be output to another directory while retaining the name of the original xml i.e. input xml is "sample.xml", output xml is also "sampl...
I've copied a Dataset from one csproj to another, and the new project gets the following compile warning:
"The custom tool 'MSDataSetGenerator' failed while processing the file 'Client.xsd'."
In researching this warning I discovered that if I opened a VS cmd prompt and run XSD.exe on the xsd file directly I get more info. It says:
"Err...
I have an html table
<table border="0" width="100%">
<tr class="headerbg">
<th width="5%">
No
</th>
<th width="30%">
Name
</th>
<th width="20%">
Department or Division
</th>
<th width="25%">
...
Hello,
I'm trying to search multiple attributes in XML :
<APIS>
<API Key="00001">
<field Username="username1" UserPassword="password1" FileName="Filename1.xml"/>
<field Username="username2" UserPassword="password2" FileName="Filename2.xml"/>
<field Username="username3" UserPassword="password3" FileName="Filename3.xml"/...
In Silverlight (and I guess WPF) why are the properties x:name x:fieldmodifier x:uid the only ones with the prefix x.
I understand the x prefix is used to refer to the XML namespace but there are a number of other properties that do not use a prefix such as width. Identifying a control is such a common task it seems odd to require a pr...
I've got an extremely long XML file, like
<Root>
<ele1>
<child1>context1</child1>
<child2>test1</child2>
<child1>context1</child1>
</ele1>
<ele2>
<child1>context2</child1>
<child2>test2</child2>
<child1>context2</child1>
</ele2>
<ele3>...........<elen>
</Root>
Now I want to remove al...