我有这种数据结构:
<?xml version="1.0" encoding="windows-1250"?>
<?xml-stylesheet type="text/xsl" href="usb71105.xsl"?>
<manas:usb xmlns:manas="http://www.manas.info/">
<manas:qr00>
<manas:verzemanas>26052708</manas:verzemanas>
<manas:verzexml>2016.03.29a</manas:verzexml>
<manas:druhtisku>U_Tisk2P/2159405/TRUE</manas:druhtisku>
</manas:qr00>
<manas:qr00>
<manas:verzemanas>26052710</manas:verzemanas>
<manas:verzexml>2016.03.30a</manas:verzexml>
<manas:druhtisku>U_Tisk2P/FALSE</manas:druhtisku>
</manas:qr00>
</manas:usb>
我需要保存以下值:manas:verzemanas;玛纳斯:verzexml;
我有这段代码:
XmlDocument doc = new XmlDocument();
doc.Load("d:\\83116623.XML");
foreach (XmlNode node in doc.DocumentElement)
{
string name = node.Attributes[0].ToString();
}
请问您有什么想法吗?
答案 0 :(得分:2)
$(document).$(':mobile-pagecontainer').pagecontainer('change', '#pageId', { changeHash: false });
你可能会更好。您还需要使用 editTextView.setOnTouchListener(new View.OnTouchListener() {
@Override
public boolean onTouch(View v, MotionEvent event) {
editTextView.onTouchEvent(event);
if(!textFocus) {
editTextView.setSelection(editTextView.getText().length());
textFocus = true;
}
return true;
}
});
editTextView.setOnFocusChangeListener(new View.OnFocusChangeListener() {
@Override
public void onFocusChange(View v, boolean hasFocus) {
textFocus = false;
}
});
前缀。 E.g:
.directive('truncate',["$window", function($window, $compile){
return {
restrict: 'A',
templateUrl: 'template/truncate.html',
link: function (scope, element, attrs) {
var height = element[0].offsetHeight;
shouldBetruncated = height>200;
if(shouldBetruncated){
loadTemplate();
};
// function loadTemplate -- begins
var loadTemplate = function ($templateCache) {
$templateCache.put('template/truncate.html',
'template code'
);
};
// -- ends
}
打印
XDocument