Hi all,
This is my xml file
Input:
<world>
<patent>
<xml>a</xml>
<java>333</java>
<jaxb>111</jaxb>
</patent>
</world>
I need the read the above xml file and reproduce the following the output
Output:
<patent>
<xml>a</xml>
<java>333</java>
<jaxb>111</jaxb>
</patent>
I dont need the wo...
I'd like to merge 2 XML streams (strings) in Java, necessarily by XSLT (that I could change the transformation), but the problem is that the XMLs come as a string. There are many examples, but through the files.
Can this be done without saving them in files?
Thanks.
...
i have not worked with XML in a while can someone post the syntax needed to build and save an xml node structure that resembles that of a tree structure that is created by a recursive function.
basically i have a recursive function that saves data found an a page(url) and then follows each URL found on that page recursivley and does the...
Hi,
I'm using an XML file to store a set of rules that my program, a service will read and apply. Obviously, as and when I add new rules to the XML file, i will have to bounce the service so that the changes can be effective.
Is there a way I can keep 'polling' the XML file every 30s or so to avoid having to bounce my service, in the e...
For example,
I would like to include <feetFromWater> in my <house> element. But here is the catch... I would like to keep the element name <house> and I do not want to modify the original definition.
FILE: baseProperty.mod
<!ELEMENT house (%size;%stories;)>
<!ATTLIST house %univ-atts;
...
I couldn't find a good implementation of this on the internet, so I wrote one. Here's hoping this page becomes the first hit in Google. Enjoy!
/**
* Return a Javascript Date for the given XML Schema date string. Return
* null if the date cannot be parsed.
*
* Does not know how to parse BC dates or AD dates < 100.
*
* Valid exam...
I am connecting to a web service to get some data back out as xml. The connection works fine and it returns the xml data from the service.
var remoteURL = EveApiUrl;
var postData = string.Format("userID={0}&apikey={1}&characterID={2}", UserId, ApiKey, CharacterId);
var request = (HttpWebRequest)WebRequest.Create(remoteURL);
request.M...
I have a partially converted XML document in soup coming from HTML. After some replacement and editing in the soup, the body is essentially -
<Text...></Text> # This replaces <a href..> tags but automatically creates the </Text>
<p class=norm ...</p>
<p class=norm ...</p>
<Text...></Text>
<p class=norm ...</p> and so forth.
I nee...
OK my problem is this, i parse a document and after the document is parsed then i want to load to the next view sounds simple but ive been here for like 4 hours playing with code and id appreciete any help u can give me atm.
k heres my parserDidEndDocumentCode
- (void)parserDidEndDocument:(NSXMLParser *)parser{
IpadSlideShowViewContro...
Hey,
I have a simple "live search" (results displayed while typing) web site. This make up is Ajax to PHP querying a pretty large XML document (10,000+ lines). This is all been hosted on a local Apache server (xamp). The scale of the xml document seems to be causing huge performance issue with results taking 10ish seconds to give the r...
I'm extracting XML node from an XElement. When I use XElement.Value it strips any HTML that may be in the node.
I know that if I do XElement.ToString() I can keep the HTML, but it also gives me the node tags. Is there any way to extract the content of a Node as is without the HTML being stripped out?
Cheers.
...
I'm curious about the <merge> and <include> tags in Android XML-layouts. I've read two tutorials, but haven't yet found a simple example usage.
Would be happy if someone could provide such an example or give a pointer to one.
...
Or perhaps have the parser just ignore the DOCTYPE tag in some fashion? I have XML files being used as "!ENTITY"s that also themselves need to have "!ENTITY"s and I have included the nested ones in the top-level file, but Visual Studio calls out my references to those in the 2nd-level files as not defined. Thanks!
...
I have an XML snippet as follows:
<PerformancePanel>
<LegalText>
<Line id="300" />
<Line id="304" />
<Line id="278" />
</LegalText>
</PerformancePanel>
I'm using the following code to get an object:
var performancePanels = new
{
Panels = (from panel in doc.Elements("PerformancePanel")
...
Folks,
I am starting work on an iPad/iPhone application that is essentially a form-filing UI. The requirement is to present a (rather large) form to the user. The form is composed of sections and questions, like so:
Form
Question 0.1
Question 0.2
Section 1
Question 1.1
etc.
The user can take various paths down the form based on an...
Can anyone explain the question mark means in Android XML attributes?
<TextView
style="?android:attr/windowTitleStyle"
More attributes
/>
...
I have an event handler that I want to be connected to a button through xml.
Basically, I want to define it as a string in my xml file, then use the property inspector to select the name of the handler for my button (the "on Click" property).
How do I define a call to the function in the string?
...
I want to match a root Element “FOO” and perform the transformation (add a version attribute) to it leaving the rest as it is. The Transformation I have so far looks like this:
<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://schemas.foo.com/fooNameSpace">
<xsl:template match="//FOO">
...
This is my code:
<?php
$data = <<<EOL
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<script type="text/javascript">
//<![CDATA[
var a = 123; // JS code
//]]>
</script>
</html>
EOL;
$dom = new DOMDocument();
$dom-...
I have a 150MB XML file which used asDB in my project.
Currently I'm using XMLReader to read content from it.
I want to know it is better to use XMLReader or LinqToXML for this scenario.
Note that I'm searching for an item in this xmland display search result, soitcan be take along or just a moment.
...