XML ကျူတိုရီရယ်

XML ပင်မစာမျက်နှာ XML နိဒါန်း XML အသုံးပြုပုံ XML သစ်ပင် XML Syntax XML ဒြပ်စင်များ XML အရည်အချင်းများ XML Namespaces XML မျက်နှာပြင် XML Http တောင်းဆိုချက် XML Parser XML DOM XML XPath XML XSLT XML XQuery XML XLink XML စစ်ဆေးခြင်း XML DTD XML Schema XML ဆာဗာ XML နမူနာများ XML Quiz XML လက်မှတ်

XML AJAX

AJAX နိဒါန်း AJAX XMLHttp AJAX တောင်းဆိုချက် AJAX တုံ့ပြန်မှု AJAX XML ဖိုင် AJAX PHP AJAX ASP AJAX ဒေတာဘေ့စ် AJAX အပလီကေးရှင်းများ AJAX ဥပမာများ

XML DOM

DOM နိဒါန်း DOM Nodes DOM အသုံးပြုခြင်း DOM Node အချက်အလက် DOM Node စာရင်း DOM လမ်းလျှောက်ခြင်း။ DOM လမ်းကြောင်းပြခြင်း။ DOM တန်ဖိုးများရယူပါ။ DOM Change Nodes DOM သည် Nodes များကို ဖယ်ရှားပါ။ DOM သည် Nodes များကို အစားထိုးပါ။ DOM သည် Nodes ကိုဖန်တီးပါ။ DOM Add Nodes DOM Clone Nodes DOM ဥပမာများ

XPath ကျူတိုရီရယ်

XPath နိဒါန်း XPath Nodes XPath Syntax XPath Axes XPath အော်ပရေတာများ XPath ဥပမာများ

XSLT ကျူတိုရီရယ်

XSLT မိတ်ဆက် XSL ဘာသာစကားများ XSLT အသွင်ပြောင်း XSLT < template> XSLT <value-of> XSLT <for-every> XSLT <sort> XSLT <if> XSLT <choose> XSLT လျှောက်ထားပါ။ Client တွင် XSLT ဆာဗာပေါ်ရှိ XSLT XSLT တည်းဖြတ် XML XSLT နမူနာများ

XQuery ကျူတိုရီရယ်

XQuery နိဒါန်း XQuery ဥပမာ XQuery FLWOR XQuery HTML XQuery စည်းမျဥ်းများ XQuery Syntax XQuery Add XQuery ကို ရွေးပါ။ XQuery လုပ်ဆောင်ချက်များ

XML DTD

DTD နိဒါန်း DTD ဆောက်လုပ်ရေးလုပ်ကွက်များ DTD ဒြပ်စင်များ DTD အရည်အချင်းများ DTD ဒြပ်စင်များနှင့် Attr DTD အဖွဲ့အစည်းများ DTD ဥပမာများ

XSD Schema

XSD မိတ်ဆက် XSD လုပ်နည်း XSD <schema> XSD ဒြပ်စင်များ XSD ရည်ညွှန်းချက်များ XSD ကန့်သတ်ချက်များ

XSD Complex

XSD ဒြပ်စင်များ XSD ဗလာ XSD ဒြပ်စင်များသာ XSD စာသားသီးသန့် XSD ရောနှောထားသည်။ XSD အညွှန်းကိန်းများ XSD <any> XSD <anyAttribute> XSD အစားထိုးခြင်း။ XSD ဥပမာ

XSD ဒေတာ

XSD ကြိုး XSD ရက်စွဲ XSD ဂဏန်း XSD ထွေ XSD အကိုးအကား

ဝဘ် ဝန်ဆောင်မှုများ

XML ဝန်ဆောင်မှုများ XML WSDL XML ဆပ်ပြာ XML RDF XML RSS

ကိုးကား

DOM Node အမျိုးအစားများ DOM Node DOM NodeList DOM အမည်ရှိNodeMap DOM စာရွက်စာတမ်း DOM ဒြပ်စင် DOM ရည်ညွှန်းချက် DOM စာသား DOM CDATA DOM မှတ်ချက် DOM XMLHttp တောင်းဆိုချက် DOM Parser XSLT ဒြပ်စင်များ XSLT/XPath လုပ်ဆောင်ချက်များ

XML နှင့် XPath


XPath ဆိုတာဘာလဲ။

XPath သည် XSLT စံနှုန်းတွင် အဓိကအစိတ်အပိုင်းတစ်ခုဖြစ်သည်။

XML စာရွက်စာတမ်းရှိ ဒြပ်စင်များနှင့် ရည်ညွှန်းချက်များကို ဖြတ်ကျော်ရန် XPath ကို အသုံးပြုနိုင်သည်။


XPath
  • XPath သည် XML စာရွက်စာတမ်း၏ အစိတ်အပိုင်းများကို သတ်မှတ်ခြင်းအတွက် အထားအသိုတစ်ခုဖြစ်သည်။
  • XPath သည် XML စာရွက်စာတမ်းများတွင် သွားလာရန် လမ်းကြောင်းဖော်ပြချက်များကို အသုံးပြုသည်။
  • XPath တွင် စံလုပ်ဆောင်ချက်များ၏ စာကြည့်တိုက်တစ်ခုပါရှိသည်။
  • XPath သည် XSLT နှင့် XQuery တွင် အဓိကအစိတ်အပိုင်းတစ်ခုဖြစ်သည်။
  • XPath သည် W3C အကြံပြုချက်ဖြစ်သည်။

XPath လမ်းကြောင်းအသုံးအနှုန်းများ

XPath သည် XML စာရွက်စာတမ်းရှိ nodes သို့မဟုတ် node-sets များကိုရွေးချယ်ရန် လမ်းကြောင်းဖော်ပြချက်များကို အသုံးပြုသည်။ သမားရိုးကျ ကွန်ပျူတာ ဖိုင်စနစ်ဖြင့် အလုပ်လုပ်သောအခါ ဤလမ်းကြောင်းဖော်ပြချက်များသည် သင်မြင်ရသည့်အသုံးအနှုန်းများနှင့် အလွန်တူပါသည်။

XPath အသုံးအနှုန်းများကို JavaScript၊ Java၊ XML Schema၊ PHP၊ Python၊ C နှင့် C++ နှင့် အခြားဘာသာစကားများစွာတွင် အသုံးပြုနိုင်သည်။


XPath ကို XSLT တွင်အသုံးပြုသည်။

XPath သည် XSLT စံနှုန်းတွင် အဓိကအစိတ်အပိုင်းတစ်ခုဖြစ်သည်။

XPath အသိပညာဖြင့် သင်သည် XSL ၏ အကျိုးကျေးဇူးများစွာကို အသုံးချနိုင်မည်ဖြစ်သည်။



XPath ဥပမာ

ကျွန်ုပ်တို့သည် အောက်ပါ XML စာရွက်စာတမ်းကို အသုံးပြုပါမည်။

<?xml version="1.0" encoding="UTF-8"?>

<bookstore>

<book category="cooking">
  <title lang="en">Everyday Italian</title>
  <author>Giada De Laurentiis</author>
  <year>2005</year>
  <price>30.00</price>
</book>

<book category="children">
  <title lang="en">Harry Potter</title>
  <author>J K. Rowling</author>
  <year>2005</year>
  <price>29.99</price>
</book>

<book category="web">
  <title lang="en">XQuery Kick Start</title>
  <author>James McGovern</author>
  <author>Per Bothner</author>
  <author>Kurt Cagle</author>
  <author>James Linn</author>
  <author>Vaidyanathan Nagarajan</author>
  <year>2003</year>
  <price>49.99</price>
</book>

<book category="web">
  <title lang="en">Learning XML</title>
  <author>Erik T. Ray</author>
  <year>2003</year>
  <price>39.95</price>
</book>

</bookstore>

အောက်ပါဇယားတွင် ကျွန်ုပ်တို့သည် XPath စကားရပ်အချို့နှင့် ဖော်ပြချက်များ၏ရလဒ်များကို ဖော်ပြထားပါသည်။

XPath Expression Result
/bookstore/book[1] Selects the first book element that is the child of the bookstore element
/bookstore/book[last()] Selects the last book element that is the child of the bookstore element
/bookstore/book[last()-1] Selects the last but one book element that is the child of the bookstore element
/bookstore/book[position()<3] Selects the first two book elements that are children of the bookstore element
//title[@lang] Selects all the title elements that have an attribute named lang
//title[@lang='en'] Selects all the title elements that have a "lang" attribute with a value of "en"
/bookstore/book[price>35.00] Selects all the book elements of the bookstore element that have a price element with a value greater than 35.00
/bookstore/book[price>35.00]/title Selects all the title elements of the book elements of the bookstore element that have a price element with a value greater than 35.00

XPath ကျူတိုရီရယ်

ကျွန်ုပ်တို့၏ XPath Tutorial တွင် XPath အကြောင်း သင်ပိုမိုလေ့လာနိုင်မည်ဖြစ်ပါသည်