xml

Create XML file from the dataset . Please Arrange node into the following Format

I fill my Dataset From certification table. Columns are the following Certification_name certification_id No_of_question, Question_name, Question_id Answer1 Answer2 Answer3 Answer4 Answer5 I want to Generate a Xml file like Following <Root> <Certification Certification_id="2" no_of_Question="10" ...

C# Search and Set Node Values

I have a Xml Document (LessonData.xml) with lesson data in it, with the following format: <Lessons> <Lesson ID= *GUID Number*> <FullName>John Smith</FullName> <Date>04/01/2010</Date> </Lesson> In c#, I have a windows app form, with a combobox. In this combobox, I have put in selections of the week dates, ie: "04/01/2010 - 10/01/...

Setting the content-type of a response in Struts2

So, I'm using freemarker templates with Struts2 to formulate my responses. However, since I'm trying to use taconite as well, I need the response to be sent with the content type of "text/xml". I can't seem to find a way to use freemarker directives to set the content type, and I am not well versed enough in struts to know if there is ...

How to load large XML file (> 100 MB) to an XMLType column in Oracle

Dear All, I try this command to upload a file (standard.xml) into table "book" the file is very large (>100MB). insert into book values(1,'Complete Data', XMLType(bfilename('XMLDIR', 'standard.xml'), nls_charset_id('AL16UTF8'))); The problem is after I execute the query above, the XML file is not inserted 100% to the column. There i...

Is "XML SCRIPT" alive yet?

I heard about in ASP.NET AJAX in Action book. ...

IE8 Hang on XSL transform

We have a site that does clientside xsl formatting. In IE8, when logging into the website, IE hangs 1 out of 4 times. The random hang only occurs in combination with Response.Redirect. LandingPage.asp post submits to Login.asp. When credentials are correct: Login.asp does a Response.Redirect to PersonalDossier.asp. When I post direct...

Asp. Net Adrotator Control with Multiple Keyword Filter

Hi there, I have implemented asp.net adrotator control for rotating advertisements with xml file. I am filtering specific advertisements with Keyword using 1 in xml for displaying advertisements. I need to customize my filter with multiple keywords, so my filtration would be something like this 1 or 2. How can i do this? Please provi...

C# Showing Multiple XML Data Entires With the Same Node Value.

I have a Xml Document that has lesson information in it, such as the following: <Lessons> <Lesson ID= *GUID number*> <Date>01/01/2010</Date> <Time>07:00am</Time> </Lesson> <Lesson ID= *GUID number*> <Date>01/01/2010</Date> <Time>09:00</Time> </Lesson> <Lessons> So, I have buttons in a Win App form that represent the differ...

Iterate through an xml file for a selected node

hi, i have an xml file called image.xml <?xml version="1.0"?> <Image> <Overview>0</Overview> <Gallery1>0</Gallery1> <Gallery2>0</Gallery2> </Image> code string strGallery =textbox1.text; lets say text box contains value = Gallery1 when an add an image in the gallery1 using an file upload control ...

Help with XML, PHP and CDATA

Hi, I have the following contents in my XML file: <items> <item id="1"><content><![CDATA[<p>string</p>]]></content></item> </items> I have HTML inside the content, so, I used CDATA. However, when I'm trying to display the content as HTML on the web page: $item_content = $xpath2->query("/bulletin/item[@id='$item_id']/content"); forea...

how to retrive an value from xml for a particluar node and again update the xml

hi, <?xml version="1.0"?> <Image> <Overview>13</Overview> <Gallery1>1</Gallery1> <Gallery2>4</Gallery2> <Gallery3>6</Gallery3> <Gallery4>1</Gallery4> </Image> hi this is my xml file i have an dropdown value with values [gallery1, gallery2, gallery3 so on . if user select an gallery...

Jquery Ajax XML respond problem

Hi guys, I am a little bit confused on something, see I am doing an Ajax request via Jquery, I send back encoded data in an xml document ( using htmlentities to prevent XSS ) but the thing is when I parse the XML and get the data it seems Jquery automatically decodes the htmlentities and I end up with vulnerable data. Do you have any id...

JAXB appending unneeded namespace declarations to tags

I'm implementing a homebrew subprotocol of XMPP, and i'm using combination of StAX and JAXB for parsing/marshalling mesages. And when I marshall a message I end up with loads of unneded namespace declarations: <ns2:auth xmlns:ns2="urn:ietf:params:xml:ns:ilf-auth" xmlns:ns4="ilf:iq:experiment:power" xmlns:ns3="ilf:iq:experiment:i...

XML and the & character

I need to pass the & character inside an XML element, but its not liking it, here is a code sample: XmlDocument doc = new XmlDocument(); XmlElement batch = doc.CreateElement("Batch"); string item = "<field>http://mylink.com/page.aspx?id=1&amp;disp=2&lt;/field&gt;" batch.InnerXml = item; Its absolutely crucial I put this link inside, s...

how to rename the file in c#

hi, strPath= c:\images\gallery\add.gif now i need to rename this file name add.gif -->thumb1.gid now i should write one comman method whateverthe file name be we need to replace that name with this string strfilename = "thumb" **Result thum.gif strPath= c:\images\gallery\thum.gif** thank you ...

Converting jQuery objects back to xmldocument

Here is the problem: I'm looping over a set of nodes and based on their type i'd like to use the jQuery xslt plugin. var options = { type: "POST", url: "api/dosomething/usefull", data: "orderid=12345", success: function(response) { $(response).find("group").each(function() { if ($(this).attr(type) ...

Using XML, XSLT and c# to create an RTF or PDF

EDIT: User has informed me that he will accept PDF format also I have to create a simple RTF or PDF document in server side code and save on a network driver for future downloading. The letter will be populated from info that I have stored in a SQL Server (2005). I access the databse using a Linq-to-Sql model. The document will be ...

Checking emptiness of an element in hpricot

Let's say this is the location element: <.location>blah...<./location> It can be empty like this: <.location/> Is there a way to detect the backslash in the empty element in order to not return it? ...

Convert Xaml UI to .Net Compact Framework UI

Is it possible to convert Xaml into a .Net Compact Framework UI (dll, exe, etc...)? In fact any XML based representation would be nice (QT, GTK, etc...). ...

Convert Cobol copybook to XSD

Does anyone know a tool to convert from Cobol Copybook to XSD? Or XML. ...