I am using javascript to manipulate XML in a non-browser context (no DOM), and am looking for an E4X expression to rename a list of tags. For any given tag, I don't necessarily know ahead of time what it is called, and I only want to rename it if it contains a given substring.
As I very contrived example, I may have:
someXML = <Favouri...
Perhaps this is nitpicky, but I have to ask. I'm using Nokogiri to parse XML, remove certain tags, and write over the original file with the results. Using .remove leaves blank lines in the XML. I'm currently using a regex to get rid of the blank lines. Is there some built-in Nokogiri method I should be using? Here's what I have:
requir...
Hi, I have the following xml and I'm writing a XSLT to transform it:
<callop>
<con>unit</con>
<var>u</var>
<var>v</var>
</callop>
The problem is that if <callop> is inside <is> then it should be a <nano> element and <con> becomes <Fun> but otherwise its an <Atom> and <con> becomes a <Rel>.
How is this possible. Do I have to go and...
I am writing a class library which abstracts data contained in XML files on a web site. Each XML file uses the same root element: page. The descendant(s) of page depend on the specific file that I am downloading. For example:
<!-- http://.../groups.xml -->
<page url="/groups.xml">
<groups>
<group id="1" >
<members>
<...
I blame the Google Search Appliance for making me ask this question.
Here is a snippet of the XML returned by the Appliance:
<GSP VER="3.2">
<TM>0.073846</TM>
<Q>test</Q>
<PARAM name="entqr" value="0" original_value="0"/>
<PARAM name="access" value="p" original_value="p"/>
<PARAM name="output" value="xml_no_dtd" original_value="xml_no_...
how do you serialize html in c sharp?
I think I know how to use XSD.exe to create C Sharp classes from XML that can be used with the XmlSerializer class to serialize and verify the xml document.
Is there a way to do the same sort of thing with an HTML document? I have tried but the xsd command line says that the remote name www.w3.or...
Hi
I'm currently calling a web service from my J2ME app and receiving the xml document as a string object.
is it possible to convert the string object to a document type?
Can I navigate the document inside the string?
Any answers would be appreciated, been googling for a while and so far, no good.
...
Hello, I need to find and replace the value of the specific xml element. The conditions are as follows:
the value of element enabled must be changed from 0 to 1;
enabled must be the child of an somenode element
My test xml looks like this:
<somenode name="node1">
<some></some>
<enabled>0</enabled>
<some></some>
</somenod...
The Central Bank of Russia as any other central bank provides a service to get exchange rates between ruble a number of other world currencies.
Web service: http://www.cbr.ru/DailyInfoWebServ/DailyInfo.asmx
XML output: http://www.cbr.ru/scripts/XML_daily.asp?date_req=25/11/2009
.NET can easily read both. But what is faster and more re...
i need to parse this such that i can get the attribute of MMV and all the attributes of all CS tags
<MMV val="Configdes000110010101">
<CS protocol="SNMP" CommandString="wmanIfBsDcdInterval"
oid="1.3.6.1.2.1.10.184.1.1.2.2.1.1" Get_SecurityString="public"
Set_SecurityString="public" type="INTEGER" > </CS>
<CS protoc...
My data structure looks like this
<datastructure>
<field1>data</field1>
<field2>data</field2>
<field3>data</field3>
<field4>data</field4>
<field4>data</field4>
<field4>data</field4>
<field4>data</field4>
</datastructure>
All fields must appear exactly one time, except field4 which can appear [0, unbounded] times. Also th...
Hi ,
How to save xml file on client side using javascript...?
if (window.XMLHttpRequest) {
xhttp = new XMLHttpRequest();
}
else // Internet Explorer 5/6
{
xhttp = new ActiveXObject("Microsoft.XMLHTTP");
}
xhttp.open("GET", "User.xml", false);
xhttp.send("")...
when studying about xml vulnerabilities , i came accross coercive parsing attack.
can anybody say what exactly is Coercive parsing attack(in SOA applications). How does the attack take place? How can one implement this attack using xml parser in java?
...
I'm having a problem with a xsl transformation on a extended xml JUnit report file. I've extended the file as follows:
<testcase classname="net.luminis.osgitest.test.adhoc.AdHocTest" name="testGetExportedPackagesByPackage" osgi-vendor-name="felix/1.8.0" time="3.212">
<osgi-specs>
<osgi-spec version="4.1">
<sections>
<section...
I have defined a xml schema as below
<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="PacketTemplate"
targetNamespace="http://tempuri.org/PacketTemplate.xsd"
elementFormDefault="qualified"
xmlns="http://tempuri.org/PacketTemplate.xsd"
xmlns:mstns="http://tempuri.org/PacketTemplate.xsd"
xmlns:xs="http://www.w3.org/2001/XMLSchema"&g...
Hi,
I've written a servlet that takes some xml and xsl and produces a PDF, using ITextRenderer, and displays it on the screen.
However, what I wish to do now is to display the resulting XHTML from the transformation on a webpage. I've created a new servlet which gets the xml and xsl as normal, but I'm unsure how to get the resultant XH...
Currently the php framework I'm dealing with has a simple conf file with define's in it. The update I need to make is basically have simple client settings editable for the application which uses the framework. ( And there is a custom made CMS that is programmed to support this framework )
The framework doesn't rely on a database to sto...
I'm looking for a .NET XPathNavigator that can read XML without loading the entire document in memory (which is what XPathDocument does). Is there a class that does this, or do I have to write my own?
...
I am doing a simple XML parser program.I am running it in command prompt.The program (abc.java) compiles successfully.But it gives following error after running it:
C:\Program Files\Java\jdk1.6.0_13\bin>java abc abc.xml
[Fatal Error] abc.xml:1:8: The
processing instruction target matching
"[xX][mM][ lL]" is not allowed.
Pars...
I deserialize XML into classes:
My XML file:
<?xml version="1.0" encoding="utf-8" ?>
<ToolBarConfiguration>
<ToolBars>
<ToolBarSet id="1" buttonsCounter="4" width="252">
<ToolBarItems>
<ToolBarItem id="1" Command="Command11" Icon="pic11" Icon2="pic11" Enabled="true" Visible="true" Type="Button"/>
<ToolBarIt...