Ignoring white spaces
I am using XCers DOM parser for parsing an XML file . However every time I get a #text node every time i try to access the element node . I have set setIncludeIgnorableWhitespace to false . Still no avail . ...
I am using XCers DOM parser for parsing an XML file . However every time I get a #text node every time i try to access the element node . I have set setIncludeIgnorableWhitespace to false . Still no avail . ...
Hi there, I want to format a XML document during unmarshal with JAXB. Unmarshal looks like: Unmarshaller u = createAndsetUpUnmarshaller(enableValidation, evtHandler, clazz); return u.unmarshal(new ByteArrayInputStream(stringSource.getBytes())); While marshaling one can format the code via: marshaller.setProperty(Marshaller.JAXB_FORM...
I want to merge the multiple XML files into single XML file in Perl. File 1 : <r1> <searchpath> <dir>/usr/bin</dir> <dir>/usr/local/bin</dir> <dir>/usr/X11/bin</dir> </searchpath> </r1> FILE 2 : <r2> <user login="grep" fullname="Gary R Epstein" /> <user login="stty" fullname="Simon T Tyson" /> </r2> Mer...
Are there any formal recommendations on element casing in XML? I know XHTML uses lowercase element names (as opposed to HTML which canonically uses uppercase but is case-insensitive.) But I'm talking about XML for generic content. lowercase: <customer> <accountnumber>619</accountnumber> <name>Shelby Lake</name> </customer> c...
Hi! I created a report in VS using a shared data source which is connected to a sharepoint list. In the report I created a dataset with a SOAP call to the data source so I get the result from the sharepoint list in a table. this is the soap call <Query> <SoapAction>http://schemas.microsoft.com/sharepoint/soap/GetListItems</SoapActi...
Hi, I'm looking to parse some CXML in PHP...basically all I'm looking to get the value of tags and attributes within it.. how can this be done... Thanks, ...
I've a chunk of code that works fine in isolation, but used a dependency in a clients project fails. A call to Document doc = impl.createDocument(null,null,null); fails (looks like the problem at http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4913257). The instance of 'impl' in my unit tests is an instance of com.sun.org.apache.x...
I have to write an XML file using java.The contents should be written from a map.The map contains items as key and their market share as value.I need to build an XML file withe two tags.I will use this XML to build a piechart using amcharts.Can anyone help with an existing code? <xml> <pie> <slice title="<Map key1>"><Map Value1></sl...
List<int> testList = new List<int>(); testList.Add(1); testList.Add(2); testList.Add(3); XmlSerializer xs = new XmlSerializer(typeof(List<int>)); This code (partial) creates a default root node <ArrayOfInts> and every node: <int>. Is it possible to set differet names, without creating wrapping class? Thanks ...
In continuation of the question I had asked concerning "How to create subsets of a single set of elements with XSLT?" I wish to take my problem one step further: I had originally given the following XML as the original: <Set> <Element name="Superset1_Set1_Element1"/> <Element name="Superset1_Set1_Element2"/> <Element name="Sup...
Given a stream of JSON, how can I read it as XML. I am aware of System.Runtime.Serialization.Json.XmlJsonReader but it is internal ...
We have a situation where we need to store form data in our sql server but each new job we setup will have different fields with different field names and lengths. An example Job 1: Field 1: first_name - varchar(20) Field 2: last_name - varchar(30) Job 2: Field 1: first_name - varchar(15) Field 2: middle_initial - varch...
i have a dependancy on MSXML 4.0. Microsoft has a page that gives the CLSID and ProgIDs of various MSXML 4.0 objects: Symbolic Name: CLSID_DOMDocument40 GUID: {88d969c0-f192-11d4-a65f-0040963251e5} ProgID: Msxml2.DOMDocument.4.0 Symbolic Name: CLSID_XMLSchemaCache40 GUID: {88d969c2-f192-11d4-a65f-0040963251e5...
Hi! I've just started using HTTParty, and i've encountered a problem in the way it builds the Hash from the XML replied by the server. If i setup the following Builder template on the server: xml.thunt :sendSubscriptionResult, :"xmlns:thunt" => "http://example.com/thunt", :status => @status everything works well, i.e. the Hash built...
Can anyone share? Excel format is fine too. ...
Hi So I have a function that outputs an xml string that goes something like <expensesAC> <cashflow> <month>6</month> <cash>300</cash> <projected>null</projected> </cashflow> <cashflow> <month>6</month> <cash>300</cash> <projected>null</projected> </cashflow> <cashflow> <month>6</month> <cash>300...
Hi I write a method on my page that return a XMLDocument.This is my method: [System.Web.Services.WebMethod()] public static System.Xml.XmlDocument MyGet() { string cnn=System.Configuration.ConfigurationManager.ConnectionStrings["NorthwindConnectionString"].ConnectionString.ToString(); SqlConnection cn = new SqlConnection(cnn...
Hi I have some code that creates a xml excel spreadsheet. This sheet contains hyperlinks to documents in subdirectories. An example of the href for the link would be ".\dir1\dir2\document.pdf". When the spreadsheet is opened in ms excel 2007 this link is wrongly rendered as "file:///c:\temp\dir1\dir2\dir1\dir2\document.pdf". I have fo...
I'm working on a kind of "store and forward" application for WCF services. I want to save the message in a database as a raw XML blob, as XElement. I'm having a bit of trouble converting the datacontract into the XElement type I need for the database call. Any ideas? ...
I'm looking for a way to parse an xml/html document in ruby, which contains ERB style tags <% %> with ruby code inside. REXML, the built in XML parser won't allow me to do this. I'm aware that I might be able to with a third party library like hpricot, but I'd like to avoid any external dependencies. Is there a way I could get REXML t...