Posts Tagged ‘lt’

how to read the subchilds from a XML file using JSP?

this is my XML file:
<prog>
<name>M</name>
<child>
<name>CM</name>
<subchild>
<name>SM</name>
</subchild>
</child>
</prog>

All i need now, is to fetch the value "SM" alone from the XML either using java or JSP. JSP wud be a better choice. Please someone help me on this !!

Thanks and Regards.
i want the procedure to be generic with no hard coded string values for validation.

Align to center with XML

Hi.
Im editing an xml template, and need to align an advert im putting in it, to the centrally

I have tried <center>ad</center> but that doesn’t work.

Is it <align=’center’> or something simular? Cheers for help.

I want to use underline tag in my xml document. which tag should i use. i know about html, its <u> tag..?

but i have not much or say just no knoweldge of xml… can you please help me for that.
<title>abcde</title>
<date>~~~~~~~~</date>
<description>special deals</description>
<main><![CDATA[<img alt="xxxxxxxxxxxxxx
This is kind of thing what i am using.. i want to make special deal underlined.
please help

Thanks a lot

I have a doubt on xml tags?

When I add for eg: <detail> </detail> is a tag in my file. And I want to give the value for it from database. if the value is null i get this tag as <detail/> in xml file. Why is this happening? and will it be a problem while parsing?

Who is good at parsing XML files using PHP?

For some reason I seriously cannot figure it out. If you know some site where I can learn how to heavily parse XML files with PHP, then that would be good enough. This isn’t just simple RSS or anything. This is very complex, multi-layered XML. I am using this for something that’s just like Blogger and Xanga, where someone could make blogs. The XML is for themes in something like Blogger, where you would enter <$someVariableName$>, but mine is in completely XML. Some thing like
<foreachpost>
<![CDATA[
<b>another post: at $time by $who</b><br />
<p>$posttext</p>
]]>
</foreachpost>
If you would like to help me out by maybe even doing all of the source code for parsing the XML, I would really appreciate it, and I will definitely have a link to your site or whatever if you like. For more info just send me a message in my profile for yahoo answers or email me at sharkbaitbobby (((AT))) gmail (((dot))) com.

question about php and xml?

I am using php version 4.3 I believe and everytime I try and do this

<? echo "<username>sam</username>"; ?> it doens’t echo out the xml only the "sam" string, its really irratating, any reason why php is not reading the string formatted as xml?

To display content of XML element in visual basic form in simple way?

I have a xml file which is having one element <name>Thrisul</name>. Now I want to display <name> element content "Thrisul" in visual basic TextBox.

If possible kindly provide the easy and simple method.

please please convert the following XML to another XML with XSLT:?

This is the xml:

<Account>
<Id>1</Id>
<FirstName>Ajoy</FirstName>
<LastName>Chakraborty</LastName>
</Account>

convert the above xml to the xml below(with the help of XSLT):

<Customer>
<CustomerId>1</CustomerId>
<Name>Ajoy Chakraborty</Name>

</Customer>

How do i center a google gadget i put on my site using dreamweaver cs3?

I built my site with dreamweaver cs3 and i added a bandwidth test google gadget. It shows up perfectly but i can not get it to center. anyone know how i can do this? This is how i have it written.

<p><script src="http://www.gmodules.com/ig/ifr?url=http://hosting.gmodules.com/ig/gadgets/file/103534220535816043845/speedtest.xml&synd=open&w=350&h=305&title=Speed+Test&border=%23ffffff%7C3px%2C1px+solid+%23999999&output=js"></script> </p>

How do i delete the 2nd iteration of an XML tag in a file?

Ex.
<Book>
<Info> blah blah</Info>
</Book>
<!– delete from "<Book .* </Book>" –>
<Book>
<Info />
<Info2 />
</Book>

I appreciate your help!! :) Yes, i have Notepad++