i am new to xpath qurey. i want some how to get these nodes.

<?xml version="1.0" encoding="UTF-8"?>
<uml:Model name="Studentmanagementsystem" xmi:id="e5i21gSGAqAERwCq" xmi:version="2.1" xmlns:uml="http://www.eclipse.org/uml2/2.0.0/UML" xmlns:xmi="http://schema.omg.org/spec/XMI/2.1">
<xmi:Documentation xmi:Exporter="Visual Paradigm for UML" xmi:ExporterVersion="6.3.0"/>
<packagedElement isAbstract="false" isActive="false" isLeaf="false" name="User" visibility="public" xmi:id="lELO1gSGAqAERwOt" xmi:type="uml:Class">
<xmi:Extension xmi:Extender="Visual Paradigm for UML">
<isRoot xmi:value="false"/>
<modelType value="Class"/>
<businessModel xmi:value="false"/>
</xmi:Extension>
<ownedAttribute aggregation="none" isDerived="false" name="username" ownerScope="instance" visibility="private" xmi:id="YBTu1gSGAqAERwkJ" xmi:type="uml:Property">
<xmi:Extension xmi:Extender="Visual Paradigm for UML">
<attribute/>
<isVisble xmi:value="true"/>
</xmi:Extension>
</ownedAttribute>
<ownedAttribute aggregation="none" isDerived="false" name="password" ownerScope="instance" visibility="private" xmi:id="Jjru1gSGAqAERwnG" xmi:type="uml:Property">
<xmi:Extension xmi:Extender="Visual Paradigm for UML">
<attribute/>
<isVisble xmi:value="true"/>
</xmi:Extension>
</ownedAttribute>
<ownedOperation isAbstract="false" isLeaf="false" isQuery="false" name="Username" ownerScope="instance" visibility="public" xmi:id="Tage1gSGAqAERxeI" xmi:type="uml:Operation">
<ownedParameter direction="return" isOrdered="false" isUnique="true" xmi:id="Tage1gSGAqAERxeI_return" xmi:type="uml:Parameter"/>
<xmi:Extension xmi:Extender="Visual Paradigm for UML">
<returnTypeDocumentation xmi:value=""/>
</xmi:Extension>
</ownedOperation>
<ownedOperation isAbstract="false" isLeaf="false" isQuery="false" name="Password" ownerScope="instance" visibility="public" xmi:id="7rYe1gSGAqAERxjn" xmi:type="uml:Operation">
<ownedParameter direction="return" isOrdered="false" isUnique="true" xmi:id="7rYe1gSGAqAERxjn_return" xmi:type="uml:Parameter"/>
<xmi:Extension xmi:Extender="Visual Paradigm for UML">
<returnTypeDocumentation xmi:value=""/>
</xmi:Extension>
</ownedOperation>
<generalization general="kj0O1gSGAqAERwFv" xmi:id="nELO1gSGAqAERwPT" xmi:type="uml:Generalization"/>
</packagedElement>


want to read <packagedElement>"all the elements with in"</packagedElement>

You can read about XPath on the web. Places like Wikipedia's article on XPath 1.0 are a good place to start.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.