PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
<PISI>
<Package>
<Name>pida</Name>
<Summary xml:lang="en">
A program written to help you practice ear training
</Summary>
<Summary xml:lang="tr">Kulak eğitimi için yazılmış uygulama</Summary>
<Description xml:lang="en">
Solfege is a free ear training program written in python using gtk+ and PyGTK.
</Description>
<Description xml:lang="tr">
Solfege, kulak eğitimi için, Gtk+ ve PyGTK kullanılarak Python'da yazılmış ücretsiz bir uygulamadır.
</Description>
<IsA>app:gui</IsA>
<PartOf>programming.environment</PartOf>
<License>as-is</License>
<RuntimeDependencies>
<Dependency>pygtk</Dependency>
<Dependency>kiwi</Dependency>
<Dependency>vte</Dependency>
<Dependency>gnome-python</Dependency>
</RuntimeDependencies>
<History>
<Update release="2">
<Date>2008-01-06</Date>
<Version>0.5.1</Version>
<Comment>
Add patch for controlling editors' availability on first screen.
</Comment>
<Name>xxxxxxxxxxxxx</Name>
<Email>xxxxxxxxxxxx@gmail.com</Email>
</Update>
</History>
<Build>1</Build>
<Distribution>Pardus</Distribution>
<DistributionRelease>2009</DistributionRelease>
<Architecture>i686</Architecture>
<InstalledSize>1692705</InstalledSize>
<PackageSize>320968</PackageSize>
<PackageHash>0a3b52fc6c228382c3d44eb8d4fa452dc45044d4</PackageHash>
<PackageURI>pida-0.5.1-2-1.pisi</PackageURI>
<Source>
<Name>pida</Name>
<Homepage>http://pida.co.uk/</Homepage>
<Packager>
<Name>Jérôme Schneider</Name>
<Email>jerome.schneider@gmail.com</Email>
</Packager>
</Source>
</Package>
</PISI>
For example, i want to get tr summary here. How can i do?
are you creating this xml or just consuming it? The first easy thing will be to change xml:lang for just lang
I think you have to specify a name space if you us xml:lang. The problem I have so far is that I did a little test,
I added to namespace to the xml, and I still cannot get the property. I am not sure what I am doing wrong.
to tell you the truth, I am not sure why some example access the data like object properties, other access like an array(like in my code). maybe tasairis can share some light.