का उपयोग कर एचटीएमएल क्वेरी करना YQL क्वेरी भाषा और YQL द्वारा प्रदान की गई xpath कार्यक्षमता का उपयोग करके एचटीएमएल को पार्स करने का प्रयास करते समय, मैं "टेक्स्ट()" या विशेषता मान निकालने में सक्षम नहीं होने की समस्याओं में भाग गया।
उदाहरण के लिए
perma linkयाहू YQL
select * from html where url="http://stackoverflow.com"
and xpath='//div/h3/a'
जब मैं
select * from html where url="http://stackoverflow.com"
and xpath='//div/h3/a/text()'
मैं परिणाम एक के बजाय concatenated मिल का उपयोग कर नोड मान प्राप्त करने के लिए प्रयास करें एक्सएमएल के रूप में एंकर की एक सूची देता है
<results>
<a class="question-hyperlink" href="https://stackoverflow.com/questions/661184/filling-the-text-area-with-the-text-when-a-button-is-clicked" title="In ASP.net, I need the code to fill the text area (in the form) when a button is clicked. Can you help me through by showing a simple .aspx code containing the script tag? ">Filling the text area with the text when a button is clicked</a>...
</results>
अब नोड सूची उदाहरण के लिए
<results>Xcode: attaching to a remote process for debuggingWhy is b
…… </results>
मैं इसे कैसे नोड सूचियों में अलग करते हैं और मैं विशेषता मान कैसे चयन करते हैं?
इस
select * from html where url="http://stackoverflow.com"
and xpath='//div/h3/a[@href]'
की तरह एक क्वेरी मुझे क्वेरी करने div/h3/a
एक आकर्षण की तरह काम करता है! – Cherian