get element through attribute

Ads
 

get element through attribute

hi,i need a function that gets(nodename and the attributevalue)and returns the node
my file look like this:
<Medicines>
- <medicine name="lili">
<recipe>yes</recipe>
</medicine>
</Medicines>

is there function like this:f(medicine,lili)returns the node(medicine)

and thanks alot
View Answers

April 12, 2010 at 3:03 PM

Hi Friend,

Please visit the following link:

http://www.roseindia.net/xml/

Hope that it will be helpful for you.
Thanks

Ads









Related Tutorials/Questions & Answers:
Will i be able to get the content of a webpage in a word document (Note:i don t have access to the source code)through java code?
Will i be able to get the content of a webpage in a word document (Note:i don t have access to the source code)through java code?  public class WebpageReader { public static void main(String[] args) throws IOException
get
get ( ) Method in PHP  what is get method in PHP   Please visit the following link: http://www.roseindia.net/php/php-Get-Post.shtml
Advertisements
multivalued attribute
multivalued attribute  I have a author as multivalued attribute and i have inserted values for it in database but now how to insert values in the database through form .I have written query as shown below and iam getting error
Passing array element
Passing array element  What about passing an element of an array? If I have array of objects and pass functionA(arr[2]); Then functionA() will get arr[2] as a value type or a reference type
Selenium webdriver - Getting Xpath for element in IE
Selenium webdriver - Getting Xpath for element in IE   How to get Xpath for element in IE
Selenium webdriver - Getting Xpath for element in IE
Selenium webdriver - Getting Xpath for element in IE   How to get Xpath for element in IE
jsf attribute
jsf attribute  What is the different between value and binding attribute of jsf
multivalued attribute?
multivalued attribute?  I have a problem in editing the database through form because of multivalued attribute it is creating the error and also how to write code for displaying the data when there is multivalued attribute
multivalued attribute?
multivalued attribute?  I have a problem in editing the database through form because of multivalued attribute it is creating the error and also how to write code for displaying the data when there is multivalued attribute
JavaScript Remove Element
the button, the div element will get removed: Download Source Code... JavaScript Remove Element...; In this section, you will learn how to remove HTML element using JavaScript. JavaScript
remove parent element JavaScript
remove parent element JavaScript  How to remove parent element in JavaScript
Traversing through filtering
on the given conditions. You can traverse element : Traversing through... Traversing through filtering       Traversing through filtering Using jQuery, you can
Java Servlet : Get Attribute
Java Servlet : Get Attribute In this tutorial, we will discuss how... of the named attribute in form of object. If no attribute found of specified name... the the name of the attribute Returns: an object that containing value
ModuleNotFoundError: No module named 'element'
ModuleNotFoundError: No module named 'element'  Hi, My Python... 'element' How to remove the ModuleNotFoundError: No module named 'element... to install padas library. You can install element python with following command
Spring Wire Array Type To List Element Example
element is used. Product.java: This class contains parts attribute which...Spring <list> Configuration Element to wire Array type property The list element is used to store multiple values. Its sub elements, which can be used
protractor check if element exists
protractor check if element exists  Hi, We are working... to check if element exists in protractor framework? Thanks   Hi, There are methods protractor to check if element exists. You can use the following
What is attribute oriented programming?
What is attribute oriented programming?  Hi, What is attribute oriented programming? Thanks
XSLT Elements and Attributes
attribute specifies the name of the element. The elements can be nested... element, the xsl:attribute element is used to output an attribute. <...Elements and Attributes The element is used to create an output element
MySQL Attribute
MySQL Attribute This example illustrates how to use the COLLATE attribute in MySQL. In this example we use the COLLATE attribute to define the attribute... and collation for the column. Query CREATE TABLE atttribute (attribute_name CHAR
remove element from stack
remove element from stack  Hi there I'm looking around... extends ArrayList<String> { public Object peek() { return get(size... Stack extends ArrayList<String> { public Object peek() { return get
Use of immediate attribute
Use of immediate attribute  What is the use of immediate attribute
JSF Rendered Attribute
JSF Rendered Attribute  i need the example for jsf with rendered attribute
persistence xml class element
persistence xml class element  Hi, How to define class element in persistence.xml file. Thanks   Hi, You can use the .... tag. Here is the example: <class>net.roseindia.model.Product</class> Read more
Page Directive attribute - info
Page Directive attribute - info This tutorial  contains description of info attribute of page Directive. info Attribute : info attribute of page... of the attribute will be a text String. This feature is useful where a huge number of server
Iterating through pages
Iterating through pages  hello, I have a web page with a table...". And the next 100 records will get displayed in the page2. The pages go on wrt... with a sample java/ jsp code or technical details of how to iterate through the pages
value and binding attribute
value and binding attribute  What is the difference between value and binding attribute of jsf tag
value and binding attribute
value and binding attribute  What is the difference between value and binding attribute in jsf
Page Directive attribute - isELIgnored
"false" to isELIgnored attribute you will get output - If you put value...Page Directive attribute - isELIgnored This tutorial contains description of isELIgnored attribute of page Directive. isELIgnored Attribute : page directive
Fixed Values
Fixed Values If you want to supply any fixed value to the element then "fixed" attribute of the element can be used. This value is also assigned automatically but is fixed and can not be changed. Whenever the element is used
return the position of last occurrence of an element
" findLast(E element) " returns the position of the last occurrence of the given element. If this element is not in the list, then the null reference should... towards the beginning, terminating when the element is found or the beginning
return the position of last occurrence of an element
" findLast(E element) " returns the position of the last occurrence of the given element. If this element is not in the list, then the null reference should... towards the beginning, terminating when the element is found or the beginning

Ads