xml

Horizontallist control with XML dataprovider

Hi! I'm using a HorizontalList control with an XML file as a data provider. This is how the XML looks: <data> <zone name="Europe"> . . . </zone> <zone name="Japan"> <stores> . . . </stores> <collections> <collection id="id1"> ...

Xml Calling with jQuery, (invalid XML)

Hi All, I have one problem , I want to get some data from XML file (if I can say that it is XML file), with jQuery: This is my jQuery, it works with normal XML file : $.ajax({ type: "GET", url: "test.xml", dataType: "xml", success: function(xml) { $(xml).find('result').each(function(){ ...

How to group a 3x3 grid of radio buttons?

As the title describes, I'm trying to group up a grid of 3x3 radio buttons into a single radio group. In a previous question asked I learned that for radio buttons to correspond to a single group they had to be the immediate children of the radio group to which they will correspond. I learned this the hard way when I attempted to encapsu...

How do I solve this error? Trying to call data from a public

I'm trying to call data from the Google Calendar API with help from this tutorial and it's returning getting a php error: Fatal error: Call to undefined function: simplexml_load_file() in \NAWINFS02\home\users\web\b872\rh.urbanpromise\new\loadcalendar.php on line 9 The server is running PHP Version 4.4.8 System: Windows NT IIS015...

XSLT: Check if any group of elements have a child element with a specified value

Consider the following XML: <AllMyDataz> <Data> <Item1>A</Item1> </Data> <Data> <Item1>B</Item1> </Data> <Data> <Item1>A</Item1> </Data> </AllMyDataz> In my transformation I only want to do something if any of the "Data" elements contain a child element Item1 with the value of "A". I also ...

need help to solve solrj.SolrServerException

Hi all, I am new to Solr, I am using Solr -1.5( nightly bulid) to index my data which is in xml format... Here is my sample data, <row id="359" lat="40".6368913000" lng="-74.1339055000" body="There's a new kid on the block at the Central Park Zoo."></row> <row id="360" lat="40.6369362000" lng="-74.1340121000" body="@Pezzettino In Ma...

Inheritance with JAXB.

I have an XSD file which is used to generate some objects which are then shared with other systems. I'd like to customize some of the business logic a bit in there by making some more specific implementation of these. I'm not adding new fields which need to be serialized, but more along the lines of adding setMethods which may take diffe...

Bind ASP.NET Menu control to XML

Hi, I'm trying to bind my own xml file (for some certain purposes i don't want to use a sitemap) to ASP.NET control. I have this code which - with help of some articles I have found - should bind ASP.NET Menu control to xml file, but it doesn't. Do I miss something? XmlDataSource xmlSource = new XmlDataSource(); xmlSource.DataFile = Re...

Parsing SOAP XML in Oracle

Hi I am new to Oracle and I am working on something that needs to parse a SOAP request and save the address to DB Tables. I am using the XML parser in Oracle (XMLType) with XPath but am struggling since I can't figure out the way to parse the SOAP request because it has multiple namespaces. Could anyone give me an example? Thanks in ...

Writing to a non-unique div with Javascript

Hi everyone, <div class="aList"> <div class="theTitle"></div> <div class="theContent"></div> </div> I'm building a multi-feed RSS reader for school. aList is the div that encompasses each individual feed (the amount of feeds will fluctuate). theTitle is the div that will be filled with the attribute of the current feed. Additional...

How I can transform XML to Java-tree-structure?

I would like to transform XML-document to java-tree-structure, but I do not know what is a java-tree-structure? For example, JTree or another? is it exists any library? ...

How to transform XML as a string w/o using files in .NET?

Let's say I have two strings: one is XML data and the other is XSL data. The xml and xsl data are stored in database columns, if you must know. How can I transform the XML in C# w/o saving the xml and xsl as files first? I would like the output to be a string, too (HTML from the transformation). It seems C# prefers to transfor...

Date formats mismatch between different servers (XML column)

Hi, I am facing a problem for past two days with regard to the date format in SQL. I have developed a application in ASP.NET and have deployed it in production server. I am persisting data into a table which has an xml column with date feilds like ---some date time--- When I run the application from localhost ( or deploy the applica...

XSD to create an element with Namespace as prefix

I want to create an XSD which can generate the following XML. <note> <email:to>[email protected]</email:to> <from>[email protected]</from> </note> How to write XSD element definition for the element. <xsd:element name="note"> <xsd:complexType> <xsd:sequence> <xsd:element name="email:to" type="xsd:string"/> <xsd:element name="from" type="xsd:str...

JAXB lists namespaces in root element (-> each element)

By default, jaxb 2 lists all (all possible required) namespaces in root element during marshalling: Is there a way to describe namespace in each element instead of root element ?: It also solves the problem of "unnecessary namespaces", which is also important in my case. Any suggestions appreciated. ...

XQUERY Load XML to be processed by XQIB

How can we load an xml document with xquery to be parsed by the XQIB processor integrated in IE browser. Notice that the doc("doc.xml") is not supported to use with XQIB Processor. ...

How do i remove the new lines introduced when converting Document to String?

I am converting an xml string to nodelist using the code, InputSource inputSource = new InputSource(new ByteArrayInputStream( uploadFormBean.getXhtmlResponse().getBytes())); DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance(); Document document; document = documentBuilderFactory.newDocumentBuilder()....

Passing PHP variables to XML in a .php file

<?php include "../music/php/logic/core.php"; include "../music/php/logic/settings.php"; include "../music/php/logic/music.php"; $top = "At world's end"; // create doctype $dom = new DOMDocument("1.0"); header("Content-Type: text/xml"); ?> <music> <?php $_xml = "<title>".$top."</title>"; echo $_xml; ?> </music> I'm using this code...

xsd.exe generated classes don't serialize default value attributes

Hello, I have few .cs files generated by xsd.exe by a XSD schema. My problem is that when i try to serialize those classes to xml, the attributes whose values match the default values defined in the xsd schema are not being serialized. I found out that my problem is solved when i remove [System.ComponentModel.DefaultValueAttribute(t...

How to update Properties of Uploaded Documents on Sharepoint using Web Services ?

I am trying to Update/Edit Properties of Uploaded Document on Sharepoint 2007. My code: Lists listService = new Lists(); listService.PreAuthenticate = true; listService.Credentials = new NetworkCredential(username,password); listService.Url = "http://myserver/SiteName/_vti_bin/lists.asmx"; string strBatch = "<...