Problem with dots in xpath

1) The following xpath does not return any node:
/lgbl/hauptteil[1]/art[@position="art:17"]/abs[@position="abs:1"]/ziff[@position="ziff:3.1"]
Reading the whole xmltype field reveals that this node exists at the selected path
2) Alternatively xpath does return a node: /lgbl/hauptteil[1]/art[@position="art:17"]/abs[@position="abs:1"]/ziff[@position="ziff:3"]
Reading the whole xmltype field reveals that this node exists at the selected path
Question) Are dots in the position attribute string treated any special. If so, how should the xpath be formed to find the node in the query of 1)

Looks like the 1 goes into a separate criteria selection bracket, aka [@position="ziff:3"][1]
See http://p2p.wrox.com/topicindex/62465.htm

Similar Messages

  • Copy Excel Chart into Illustrator: Problem with dotted lines

    Copying an excel chart (2010 and/or 2013, Windows 7 Ultimate) to Illustrator CS6 works okay if line chart lines are solid... but if they are dotted, then in Excel 2010, the dotted line becomes jumbled, and in Excel 2013, the dotted line converts to a solid line... is the only solution to this to save the exel chart as a pdf, or is there another workaround?
    Essentially, I am creating a chart in excel and adding a few notations and graphic elements in illustrator for professional publishing...
    any help would be appreciated... thanks

    This is a follow-up (somehow, my original question was logged under OOBIMICHAEL):
    I finally broke down and bought a MacBook Pro, installed CS6 and Office 2011... and voilà... dotted lines copy from excel to illustrator just perfectly... this is a bit like copying data from Visio to Word, etc... these programs render graphics in very different ways... other than the Mac solution, I also tried the Libre Suite (open source)... which also worked perfectly to copy excel data with dotted lines to illustrator... so, until MS and Adobe actually collaborate together to provide value to its customers, the alternative seems (1) open source, (2) buy a Mac...

  • Problem with Dot(.) in email Address

    Hi,
    i send with VB Code (Word VBA 2007) an GW 7.0.3 Build 1294 a Mail to a Mail Address eg [email protected]
    The Postmaster of abc.de recives [email protected]
    any a idea what here is wrong...
    tnx for help
    Here is the complete code
    '/// Send mail with GW //
    Sub Send_GW_Mail(ByVal SinSendOpt As Single, _
    ByVal StrMail_To As String, _
    ByVal StrMail_Cc As String, _
    ByVal StrMail_Bcc As String, _
    ByVal StrMail_Betreff As String, _
    ByVal SinAZ As Single, _
    ByVal StrAnlagen As String, _
    ByVal StrMail_Text As String, _
    ByVal StrFuss_text As String)
    Dim GW As Variant
    Dim Acc As Variant
    Dim GWMailFolder As Variant
    Dim GWMessages As Variant
    Dim GWMessage As Variant
    Dim GWDraftMsg As Variant
    Dim GWRecips As Variant
    Dim GWRecip As Variant
    Dim sRecieverTo, sRecieverCC, sRecieverBcc As String
    Dim SenderDisplayName As String
    Dim SenderEmailAddress As String
    Dim CreationDate As Date
    Dim iCount As Integer
    Dim vCommander As Variant
    Dim ParamStr As String
    Dim MyMsgID As String
    Dim sResult As String
    Dim iRet As Integer
    Dim sDOT, RecDot
    Dim iPos, RecPos
    Dim SenderEmailAddressType
    Dim sAttachment
    Dim egwIncoming, egwMessagePrivate, egwNormal, egwDefaultSecurity
    Dim ToDot, CcDot, BcDot
    Dim iElement As Long
    Dim GWAddrBook As Object
    Dim GWAccount As Object
    Dim GWEntry As Object
    Dim GWEntries As Object
    Set GW = CreateObject("NovellGroupWareSession")
    Set GWAccount = GW.Login()
    Set GWAddrBook = GWAccount.AddressBooks("Primrbuch")
    Set Acc = GW.Login
    Set GWMailFolder = Acc.Mailbox
    Set GWMessages = GWMailFolder.Messages
    Set GWDraftMsg = GWMessages.Add("GW.MESSAGE.MAIL", "Draft")
    sRecieverTo = StrMail_To
    sRecieverCC = StrMail_Cc
    sRecieverBcc = StrMail_Bcc
    ' Mail Betreff definieren
    If StrMail_Betreff > "" Then GWDraftMsg.Subject = StrMail_Betreff
    ' Mail text (Body) definieren
    GWDraftMsg.BodyText = StrMail_Text & Chr$(13) & vbCrLf & Chr$(13) & vbCrLf & Chr$(13) & vbCrLf & StrFuss_text
    ' Sender Name
    GWDraftMsg.FromText = Acc.RootFolder.Name
    ' Anlagen Anfgen ################################################## ###
    For II = 1 To SinAZ
    If StrAnlagen(II) = "" Then
    'nix
    Else
    GWDraftMsg.Attachments.Add StrAnlagen(II)
    End If
    Next II
    ' E-Mail Adresse zuweisen ################################################## ######
    Set GWRecips = GWDraftMsg.Recipients
    'Wenn ein Komma kommt
    sRecieverTo = Replace(sRecieverTo, ",", ";", 1)
    sRecieverCC = Replace(sRecieverCC, ",", ";", 1)
    sRecieverBcc = Replace(sRecieverBcc, ",", ";", 1)
    'Email Empfnger Aufsplitten
    ToDot = Split(sRecieverTo, ";")
    CcDot = Split(sRecieverCC, ";")
    BcDot = Split(sRecieverBcc, ";")
    ' MailTo Zuweisen
    Dim StrDisplayName, StrMailAdress
    For iElement = 0 To UBound(ToDot)
    If ToDot(iElement) = "" Then
    Exit For
    Else
    StrMailAdress = CStr(Trim((ToDot(iElement))))
    StrDisplayName = Split(CStr(Trim((ToDot(iElement)))), "@", , vbTextCompare)
    StrDisplayName(0) = Replace(StrDisplayName(0), ".", " ", 1, , vbTextCompare)
    Set GWEntries = GWAddrBook.AddressBookEntries.Find("(<Email-Adresse> Matches " & """" & StrMailAdress & """" & ")")
    If GWEntries.Count > 0 Then
    Set GWEntry = GWEntries.Item(1)
    Else
    Set GWEntry = GWAddrBook.AddressBookEntries.Add(StrDisplayName(0 ), StrMailAdress, "NGW", "")
    End If
    Set GWRecip = GWRecips.Add(GWEntry.EMailAddress, "NGW", 0) '1 = CC and 2 = BC
    GWRecip.DisplayName = GWEntry.DisplayName
    GWDraftMsg.Recipients.Resolve
    'GWRecip.EmailType = "NGW"
    End If
    Next iElement
    Erase StrDisplayName
    StrMailAdress = ""
    For iElement = 0 To UBound(CcDot)
    If CcDot(iElement) = "" Then
    Exit For
    Else
    StrMailAdress = CStr(Trim((CcDot(iElement))))
    StrDisplayName = Split(CStr(Trim((CcDot(iElement)))), "@", , vbTextCompare)
    StrDisplayName(0) = Replace(StrDisplayName(0), ".", " ", 1, , vbTextCompare)
    Set GWEntries = GWAddrBook.AddressBookEntries.Find("(<Email-Adresse> Matches " & """" & StrMailAdress & """" & ")")
    If GWEntries.Count > 0 Then
    Set GWEntry = GWEntries.Item(1)
    Else
    Set GWEntry = GWAddrBook.AddressBookEntries.Add(StrDisplayName(0 ), StrMailAdress, "NGW", "")
    End If
    Set GWRecip = GWRecips.Add(GWEntry.EMailAddress, "NGW", 1) '1 = CC and 2 = BC
    GWRecip.DisplayName = GWEntry.DisplayName
    GWDraftMsg.Recipients.Resolve
    End If
    Next iElement
    Erase StrDisplayName
    StrMailAdress = ""
    For iElement = 0 To UBound(BcDot)
    If BcDot(iElement) = "" Then
    Exit For
    Else
    StrMailAdress = CStr(Trim((BcDot(iElement))))
    StrDisplayName = Split(CStr(Trim((BcDot(iElement)))), "@", , vbTextCompare)
    StrDisplayName(0) = Replace(StrDisplayName(0), ".", " ", 1, , vbTextCompare)
    Set GWEntries = GWAddrBook.AddressBookEntries.Find("(<Email-Adresse> Matches " & """" & StrMailAdress & """" & ")")
    If GWEntries.Count > 0 Then
    Set GWEntry = GWEntries.Item(1)
    Else
    Set GWEntry = GWAddrBook.AddressBookEntries.Add(StrDisplayName(0 ), StrMailAdress, "NGW", "")
    End If
    Set GWRecip = GWRecips.Add(GWEntry.EMailAddress, "NGW", 2) '1 = CC and 2 = BC
    GWRecip.DisplayName = GWEntry.DisplayName
    GWDraftMsg.Recipients.Resolve
    End If
    Next iElement
    Erase StrDisplayName
    StrMailAdress = ""
    SenderDisplayName = ""
    SenderEmailAddress = ""
    SenderEmailAddressType = "NGW"
    CreationDate = Now
    Set GWMessage = GWMessages.AddExistingMessage(SenderDisplayName, SenderEmailAddress, SenderEmailAddressType, _
    CreationDate, egwIncoming, egwMessagePrivate, egwNormal, egwDefaultSecurity, GWDraftMsg)
    GWMailFolder.Refresh
    Set GWMessages = Nothing
    Set GWMessages = GWMailFolder.Messages
    ' Send or Show - 1 = sho Msg / 2 = send direct
    If SinSendOpt = 1 Then
    ' Open the new message to view it and add recipient(s) manually
    MyMsgID = GWMessage.MessageID
    Set vCommander = CreateObject("GroupWiseCommander")
    ParamStr = "ItemOpen(""" + MyMsgID + """)"
    iRet = vCommander.Execute(ParamStr, sResult)
    GWMessage.Delete
    Exit Sub
    ElseIf SinSendOpt = 2 Then
    ' Direkt senden
    GWMessage.Send
    GWMessage.Delete
    MsgBox "Ihre Mail wurde gesendet!", vbInformation, "Mail sent"
    Else
    ' Open the new message to view it and add recipient(s) manually
    MyMsgID = GWMessage.MessageID
    Set vCommander = CreateObject("GroupWiseCommander")
    ParamStr = "ItemOpen(""" + MyMsgID + """)"
    iRet = vCommander.Execute(ParamStr, sResult)
    GWMessage.Delete
    Exit Sub
    End If
    'resetVariables
    call ResetVariables
    'VariablenZurcksetzten

    Hi,
    The object GWMessage and GWAccount can't support the email username with dot, you need change the the email username if it include the Dot.
    novanet.

  • Problem with dot notation in wsdl-file

    Hello,
    I want to consume a soap web service that is created in the sap system within a ios app. I am generating the stub files with sudzc. Unfortunately sudzc is making classes with a dot in its name. This is caused by the wsdl-file:
    <wsdl:types>
    <xsd:schema attributeFormDefault="qualified" targetNamespace="urn:sap-com:document:sap:rfc:functions">
    <xsd:simpleType name="RfcException.Message.Number">
    <xsd:restriction base="xsd:string">
    <xsd:maxLength value="3"/>
    <xsd:pattern value="\d*"/>
    </xsd:restriction>
    </xsd:simpleType>
    Does someone know how to delete the dot in RfcException.Message?
    Greetings, Vanessa

    Hi Vanessa,
    In WSDL file , value of tag "<wsdl:service name"  decides the Stub class name .
    Remove dot from this tag.
    Many Thanks,
    Jitendra

  • Strange problem with DOT- Overclocked by mistake

    Hi,
    Firstly i'm not any overclocker, and never ment to be. Please dont flame me.
    I was just looking at the MSI Clock screen on the DOT page of display, I clicked on the default button on the 2D clock, and the pointer jump from 300mhz to 425 mhz by itself, I tried clicking on the default button again a few times to see if the pointer would return to 300mhz but it didnt, then Windows crashed and restarted by itself.
    When Windows restarted, it said an error had happened, and did I want to report it to MS.
    When I looked at the MSI clock screen again, after the crash, the 2D clock was back at 300 mhz.
    I'm not sure if an overclock happened, or if the software just crashed.
    anyway, it just scared me.
    Could this have damaged my video card if I did overclock the 2D clock by 125 mhz by mistake? It was only at this setting for a few seconds before Windows crash.
    Everything seems to be running ok now.
    The card is an MSI FX 5700 256 mb, and the driver is an NVDIA version of 66.93

    Hi Bosskiller,
    Thank you for your help.
    Thats good news to hear, that the vga card is not damaged .
    I was abit scared, that I had damaged it.
    I'm going to delete the MSICPL.DLL file, so the DOT screen goes away,
    That way I wont be able to muck around with the overclocking controls, and make the same mistake again.
    thanks again Bosskiller

  • Problem with countinuous paper printing in dot matrix printer

    Hi All,
      I have problem with dot matrix printer (Devise Type EPESCP) while printing continuos printing. If  i am printing 2 or more than that prints at a time, 2nd page is printing 5 lines up.
    I have developed one smartform for this and i have used A4 size page format.
    I have tried to change the Printer initialization code to 86 lines for DINA4.  Still no change in continuous printing.
         Printer initialization
         Reset after exit
         Cover page
         First Page
         Start of even page
         Start of odd page
         Start of page
         End of first page
         End of even page
         End of odd page
         End of page
         Start of line on an even page
         Start of line on an odd page
         Start of line
         End of line on an even page
         End of line on odd page
         End of line
    Printer initialization
    # reset
    \e\0x40
    # select character table 3 -> PC 437 character set
    \e\0x74\0x03
    # set line spacing 6 LPI
    \e\0x32
    # set page length 86 lines
    \e\0x43\0x46
    # cancel bottom margin
    \e\0x4F
    # set left margin to 0
    \e\0x6C\0x00
    # select LQ quality
    \e\0x78\0x01
    # select non-proportional spacing
    \e\0x70\0x00
    Can any one help me.
    Thanks,
    Vishnu

    Hi Vishnu,
    Above you have the following commands:
    set line spacing 6 LPI
    \e\0x32
    set page length 86 lines
    \e\0x43\0x46
    46 HEX = 70
    So the above settings mean 70 lines at 6 LPI = 11.66 inches.
    So is the paper length 11.66 inches? If not, you should adjust the settings accordingly.
    Regards,
    Aidan

  • Regarding Pages charts, when I try to 'build' a 3D chart all I get is little dots but not graphics.  No problems with 2D charts though. Guess my question is "Help?"

    Regarding Pages charts, when I try to 'build' a 3D chart all I get is little dots but not graphics.  No problems with 2D charts though. Guess my question is "Help?"

    Sorry for the delay getting back to this.
    Thanks to Fruhulda and Peter for their comments regarding the refusal of Pages to let me make 3D charts. 
    In answer to the questions put to  me in this regard :
    1. Pages version : Pages '09  v.4.1 (923)
    2. Mac O/S :          v.10.6.8 
    3. 3D chart :          Can't find a 'name', but upright bars with rounded corners ???
    4. Moved apps :    Not that I'm aware of!  All should be as installed off the disc.
    5. A note :              I have been able to create these in the past - related to a SW update? 
                          and ... can create these charts perfectly in Keynote (go figure).
    Thanks to all.
    CM

  • Problems with JDOm XPath

    Hi all.
    I have a JDOM XML document and I use JDOMXPath to apply XPath expressions on the XML document.
    I have XPath expression for which JDOMXPath does not match any node:
    //*[not(count(descendant::a) < 4)]
    [not(descendant::node()[count(descendant::a)>3])]
    [not(descendant::text()[normalize-space(string())!='']
    [not(ancestor::a)])]
    XML parser such as Saxon, MSXML, etc. correctly match this XPath on the document and find the appropriate node-set, so the XPath expression is 100% right from the XPath syntax perspective.
    But in JDOM, it does not match.
    Could anybody tell me what is the problem?
    Thank you very much for help and sorry if this is the wrong place to ask this question - this is my first post here.
    Thanks again,
    Anna

    Sorry, forgot to tell something very important:
    the XML node-set that I am trying to match is as follows:
    <ul>
    <li>Accessibility</li>
    <li>Amaya</li>
    <li>ABC</li>
    <li>CC/PP</li>
    </ul>
    The interesting moment is, that if I change the node-set to look like this:
    <ul><li>Accessibility</li><li>Amaya</li><li>ABC</li><li><a href="Mobile/CCPP/"></a></li></ul>
    i.e. without any spaces, JDOMXPath will match for the above XPath.
    Is there any problem with spaces in JDOM/JDOMXPath?
    Thanks again
    Anna

  • Problem with custom paper size on dot matrix printer

    Hi All,
    I'm using CR2008 with updated to SP2. I have a problem with custom paper size (W=21; H=14), the CR Viewer show report with custom paper size correctly but when I print it to a dot matrix printer (Epson LQ 300+) the content was rotated to landscape. If print to a laser printer the content was printed correctly. My report was printed correctly by CR10 or previous versions I got this issue when upgraded to CR2008. I aslo tested my computer and printer with orther application like MS Word the printing have no problem with custom paper size.
    Thanks for any advice for me.
    Han

    Looking at the Epson LQ 300+ driver, I see that the latest update is from 2002. In my experience, most matrix printer drivers are not unicode. Crystal Reports is designed to only work with unicode printer drivers. See the [How Printer Driver Options Affect a Report|https://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/a09051e9-721e-2b10-11b6-f9c65c64ef29&overridelayout=true] article, page 6 for details. Also, see [this|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_dev/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do] note.
    Finally, see if you can print from the CR designer to this printer and if you get the correct results here.
    Ludek

  • Problems with special characters in InputStream or XPath

    Hello everyone,
    I am having problems with special characters such as ", ', - and so on, everything becomes ? (questionmark). (Not with special nordic characthers (å,æ,ø) though.)
    The encoding of the XML is UTF-8, and the server that holds the webservice is setting encoding to UTF-8 also, so no conflict there.
    What I have done is something like this:
    {code}
    String url = "http://www.formula1.com/rss/news/latest.rss"; // This is not the feed I use, it is a custom XML document
    InputSource is = new InputSource(url);
    DocumentBuilderFactory fct = DocumentBuilderFactory.newInstance();
    DocumentBuilder builder = fct.newDocumentBuilder();
    Document doc = builder.parse(is);
    Element rootElement = doc.getDocumentElement();
    XPathFactory factory = XPathFactory.newInstance();
    XPath xPath = factory.newXPath();
    out.print(xPath.evaluate("/rss/channel/title", rootElement)); // The xml is not a RSS feed, this is just an example.
    {code}
    Please let me know what I am doing wrong, or give me a hint of how to solve this in another way.
    Best regards,
    G.Hansen
    Edited by: G.Hansen on Mar 24, 2009 2:39 AM

    Hello, thanks for you reply. I had to rewrite your code a little, and I think that your code would not really compile, if you tried yourself :-)
    I ended up with something like this:
    our environment is running in 1.4 mode, so I could not use the for-each loop :-(
    public String printEntities(String s) {
         char[] sArray = s.toCharArray();
         StringBuffer sb = new StringBuffer();
           for (int i = 0; i < sArray.length; i++) {
             if (sArray[i] > 256)
                  sb.append("&#x" + Integer.toHexString(sArray) + ";");
         } else
              sb.append(sArray[i]);
         return sb.toString();

  • Problem with accounts that has dots

    We have this problem after migrating from tiger server.
    If user has secondary uid with dot
    (for example primary uid for john smith is johnsmith and secondary john.smith)
    and tries to login using POP(with IMAP everything is OK) then system(CYRUS)
    creates new blank mailbox john^smith.
    So user don't get any error and can't receive mail because new messages located in mailbox johnsmith.
    Removing dot from login solves the problem.
    Is there any way to solve the problem because 10.4 does not have this issue.

    forgot to mention, problem occurs only when logging to pop using uid alias that has dot(f.e. j.smith)

  • Receiver determination - Xpath expression problem with count

    I am working with a scenario where I pick up records from a JDBC connection and if the number of records I pick up is less than a certain number I want to call a webservice.  If it is greater than the number I want to write out a file to be processed by a different process on the receiving end.  I have created the receiver determination condition with the following conditions:
    (/p1:MT_HOG_Data/row[count(row) > 3] EX)
    (/p1:MT_HOG_Data/row[count(row) <= 3] EX)
    The integration is always processing the second condition no matter how many records come in.  I have tried with and without the multiline option.  Can anyone help with this?
    I have searched through the forum and checked the following links without any resolution:
    http://wiki.sdn.sap.com/wiki/display/XI/XpathConditioninReceiverDetermination
    http://help.sap.com/saphelp_nwpi71/helpdata/EN/ab/13bf7191e73a4fb3560e767a2525fd/frameset.htm
    /people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination
    I can't find any examples where a count of records is checked in the expression editor.  Thanks in advance for any help.

    You can not use the EX operator in that case, because that is used only for node existence checks, not for value checks.
    Do you have a row number in your structure ? Then you could write the xpath expression with that counter tag and value
    Example: you want to send to receiver A if count > 3, else to B:
    you set  /rowNumber EQUAL 4 for sender A
    and /rowNumber NOT EQUAL 4 for sender B
    The condition is applied to the whole document. If one of the node/values are true for that condition, then the whole condition is set to true.
    Problem with that is that the second condition also will be true because nodes for that condition will be found
    better would be to have a rowcount tag in the structure. If that is not possible, you can use the "Enhanced Receiver determination" where you can define a mapping which determines the receivers. There you can do anything complicated you want.
    CSY

  • [XML/XPATH] jaxen : problem with "parent" function

    Hello
    I have a problem with jaxen, when I try to use the XPath function parent :
    When I try this :
    import ...
    DocumentNavigator dn=new DocumentNavigator();
    try {
    objet=dn.getDocument("TESTXPath.xml");
    apath=dn.parseXPath("/Entry/Resultats/step/Population/individu/*");
    result=apath.evaluate(objet);
    System.out.println(result);
    apath=dn.parseXPath("/Entry/Resultats/step/Population/parent::*");
    result=apath.evaluate(objet); // ---> exception
    System.out.println(result);
    catch(Exception e) {
    e.printStackTrace();
    The first result is well displayed, but just before the second, I catch this exception:
    Exception in thread "main" java.lang.NoSuchMethodError: org.jdom.Element.getParent()Lorg/jdom/Element; at org.jaxen.jdom.DocumentNavigator.getParentAxisIterator(DocumentNavigator.java: 252)
    at org.jaxen.expr.iter.IterableParentAxis.iterator(IterableParentAxis.java:82)
    at org.jaxen.expr.DefaultStep.axisIterator(DefaultStep.java:139)
    at org.jaxen.expr.DefaultLocationPath.evaluate(DefaultLocationPath.java:188)
    at org.jaxen.expr.DefaultAbsoluteLocationPath.evaluate(DefaultAbsoluteLocationPat h.java:126)
    at org.jaxen.expr.DefaultXPathExpr.asList(DefaultXPathExpr.java:107)
    at org.jaxen.BaseXPath.selectNodesForContext(BaseXPath.java:716)
    at org.jaxen.BaseXPath.selectNodes(BaseXPath.java:239)
    at org.jaxen.BaseXPath.evaluate(BaseXPath.java:196)
    at MainTestClass.main(MainTestClass.java:85)
    However, the first query works good and I received list so I'm quite sure that it's not a problem of unfindable elements.
    Finaly I can't be syccessful to use XPath parent function:
    Either I catch an exception, or it returns nothing or empty list
    Isn't the XPath syntax correct in my second expression ?
    Can we do :
    /.../.../parent::* ? ou //individu/parent::* ?

    Thanks
    I think so, but.
    In fact I don't think I'm using different version of JDOM.
    I use eclipse with jdk1.4.2.
    I have downloaded JDOM-b10 and the only things I have done is to extract zip archive and to add all .jar files of the jdom directory in my library path.
    Do this is the only version of JDOM I'm using.
    All works perfectly excepted only the XPath parent method. It's strange that the other methods work fine.
    I don't knnow how to solve this problem ! so if you can help me I be very thankfull.

  • Problem with getNodeValue() - simple Java XPath question

    I am trying to extract the node values from a XML file:
    <root>
      <frame>
         <boxes>
           <box>
              <spec>22</spec>
              <spec>2222</spec>
           </box>
           <box>
              <spec id="BA" value="short"/>
              <spec id="BB" value="thin"/>
              <spec id="BC" value="black"/>
              <spec id="BD" value="full"/>
              <spec id="BE" value="7"/>
              <spec id="BF" value="deactive"/>
           </box>                
         </boxes>
         <circles>
           <circle id="CA" value="blue"/>
           <circle id="CB" value="green"/>
         </circles>
      </frame>
    </root>I use this code:
             XPathFactory factory = XPathFactory.newInstance();
             XPath xpath = factory.newXPath();
             XPathExpression xPathExpression = xpath.compile("/root/frame/boxes/box/spec");            
             Object result = xPathExpression.evaluate(doc, XPathConstants.NODESET);
             NodeList nodes = (NodeList) result;
             for (int i = 0; i < nodes.getLength(); i++) {
                 System.out.println(nodes.item(i).getNodeValue());
             }But only:
    null
    null
    null
    null
    null
    null
    null
    null
    get printed. I would have assumed:
    22
    2222
    null
    null
    null
    null
    null
    null
    since the two first spec nodes contains the above numbers. Any ideas?

    change this:
    XPathExpression xPathExpression = xpath.compile("/root/frame/boxes/box/spec");to this:
    XPathExpression xPathExpression = xpath.compile("/root/frame/boxes/box/spec/text()");Need to xpath all the way down to the text of the node.
    You could use
    System.out.println(nodes.item(i).getTextContent());with your current xpath but if the spec node has children, these will also be included in the output.

  • Problems with Steam - Dota2 and ETS2

    Hello
    I had never problems with Arch + xfce but last time I made fresh install of Arch with KDE and problems begins. Strange logs in steam running Dota 2 and Euro Truck Simulator 2. Dota 2 freezing, jumping even 60+ fps, both games can freeze for 1 min with sound.
    Lenovo Y580 - GTX660M
    After running Dota 2 with launch options (optirun -b primus %command% -console) output from console:
    Game update: AppID 570 "Dota 2", ProcID 1441, IP 0.0.0.0:0
    ERROR: ld.so: object '/home/akikyo/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
    ERROR: ld.so: object '/home/akikyo/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
    (steam:1358): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
    (steam:1358): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
    (steam:1358): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
    (steam:1358): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
    (steam:1358): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
    (steam:1358): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
    (steam:1358): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
    (steam:1358): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
    (steam:1358): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
    (steam:1358): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
    (steam:1358): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
    (steam:1358): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
    (steam:1358): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
    (steam:1358): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
    (steam:1358): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
    (steam:1358): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
    (steam:1358): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
    (steam:1358): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
    (steam:1358): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
    (steam:1358): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
    (steam:1358): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
    (steam:1358): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
    (steam:1358): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
    (steam:1358): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
    (steam:1358): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
    (steam:1358): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
    (steam:1358): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
    (steam:1358): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
    ERROR: ld.so: object '/home/akikyo/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
    pid 1455 != 1454, skipping destruction (fork without exec?)
    ERROR: ld.so: object '/home/akikyo/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
    ERROR: ld.so: object '/home/akikyo/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
    Installing breakpad exception handler for appid(gameoverlayui)/version(20140715181500_client)
    Installing breakpad exception handler for appid(gameoverlayui)/version(1.0_client)
    Installing breakpad exception handler for appid(gameoverlayui)/version(1.0_client)
    Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
    Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
    Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 78: saw unknown, expected number
    [0725/222647:ERROR:object_proxy.cc(239)] Failed to call method: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.NetworkManager was not provided by any .service files
    [0725/222647:WARNING:proxy_service.cc(958)] PAC support disabled because there is no system implementation
    Installing breakpad exception handler for appid(gameoverlayui)/version(1.0_client)
    Using breakpad crash handler
    Setting breakpad minidump AppID = 570
    Forcing breakpad minidump interfaces to load
    Looking up breakpad interfaces from steamclient
    Calling BreakpadMiniDumpSystemInit
    Looking up breakpad interfaces from steamclient
    Calling BreakpadMiniDumpSystemInit
    Steam_SetMinidumpSteamID: Caching Steam ID: 76561198074650116 [API loaded yes]
    Steam_SetMinidumpSteamID: Setting Steam ID: 76561198074650116
    SDL video target is 'x11'
    SDL failed to create GL compatibility profile (whichProfile=0!
    This system supports the OpenGL extension GL_EXT_framebuffer_object.
    This system supports the OpenGL extension GL_EXT_framebuffer_blit.
    This system supports the OpenGL extension GL_EXT_framebuffer_multisample.
    This system DOES NOT support the OpenGL extension GL_APPLE_fence.
    This system supports the OpenGL extension GL_NV_fence.
    This system supports the OpenGL extension GL_ARB_sync.
    This system supports the OpenGL extension GL_EXT_draw_buffers2.
    This system supports the OpenGL extension GL_EXT_bindable_uniform.
    This system DOES NOT support the OpenGL extension GL_APPLE_flush_buffer_range.
    This system supports the OpenGL extension GL_ARB_map_buffer_range.
    This system supports the OpenGL extension GL_ARB_vertex_buffer_object.
    This system supports the OpenGL extension GL_ARB_occlusion_query.
    This system DOES NOT support the OpenGL extension GL_APPLE_texture_range.
    This system DOES NOT support the OpenGL extension GL_APPLE_client_storage.
    This system DOES NOT support the OpenGL extension GL_ARB_uniform_buffer.
    This system supports the OpenGL extension GL_ARB_vertex_array_bgra.
    This system supports the OpenGL extension GL_EXT_vertex_array_bgra.
    This system supports the OpenGL extension GL_ARB_framebuffer_object.
    This system DOES NOT support the OpenGL extension GL_GREMEDY_string_marker.
    This system supports the OpenGL extension GL_ARB_debug_output.
    This system supports the OpenGL extension GL_EXT_direct_state_access.
    This system supports the OpenGL extension GL_NV_bindless_texture.
    This system DOES NOT support the OpenGL extension GL_AMD_pinned_memory.
    This system supports the OpenGL extension GL_EXT_framebuffer_multisample_blit_scaled.
    This system supports the OpenGL extension GL_EXT_texture_sRGB_decode.
    This system supports the OpenGL extension GL_NVX_gpu_memory_info.
    This system DOES NOT support the OpenGL extension GL_ATI_meminfo.
    This system supports the OpenGL extension GL_EXT_texture_compression_s3tc.
    This system supports the OpenGL extension GL_EXT_texture_compression_dxt1.
    This system DOES NOT support the OpenGL extension GL_ANGLE_texture_compression_dxt3.
    This system DOES NOT support the OpenGL extension GL_ANGLE_texture_compression_dxt5.
    This system DOES NOT support the OpenGL extension GLX_EXT_swap_control_tear.
    GL_NV_bindless_texture: DISABLED
    GL_AMD_pinned_memory: DISABLED
    GL_EXT_texture_sRGB_decode: AVAILABLE
    GL_NVX_gpu_memory_info: AVAILABLE
    GL_ATI_meminfo: UNAVAILABLE
    GL_NVX_gpu_memory_info: Total Dedicated: 2097152, Total Avail: 2097152, Current Avail: 2076116
    GL_MAX_SAMPLES_EXT: 32
    Adding VPK file: /home/akikyo/.local/share/Steam/SteamApps/common/dota 2 beta/dota/sound_vo_english
    Adding VPK file: /home/akikyo/.local/share/Steam/SteamApps/common/dota 2 beta/dota/pak01
    Adding VPK file: /home/akikyo/.local/share/Steam/SteamApps/common/dota 2 beta/platform/pak01
    Did not detect any valid joysticks.
    WARNING: unable to link Test_StartScript and Test_StartScript because one or more is a ConCommand.
    WARNING: unable to link Test_RandomChance and Test_RandomChance because one or more is a ConCommand.
    WARNING: unable to link Test_LoopForNumSeconds and Test_LoopForNumSeconds because one or more is a ConCommand.
    WARNING: unable to link Test_Loop and Test_Loop because one or more is a ConCommand.
    WARNING: unable to link Test_LoopCount and Test_LoopCount because one or more is a ConCommand.
    WARNING: unable to link Test_StartLoop and Test_StartLoop because one or more is a ConCommand.
    WARNING: unable to link log_flags and log_flags because one or more is a ConCommand.
    WARNING: unable to link log_color and log_color because one or more is a ConCommand.
    WARNING: unable to link log_verbosity and log_verbosity because one or more is a ConCommand.
    WARNING: unable to link log_level and log_level because one or more is a ConCommand.
    WARNING: unable to link log_dumpchannels and log_dumpchannels because one or more is a ConCommand.
    Load a scaleform font provider?
    Creating D3D9 device with D3DCREATE_MULTITHREADED
    IDirect3DDevice9::Create: BackBufWidth: 1366, BackBufHeight: 768, D3DFMT: 3, BackBufCount: 1, MultisampleType: 0, MultisampleQuality: 0
    GL sampler object usage: DISABLED
    ##### swap interval = 0 swap limit = 1 #####
    Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
    Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
    Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 78: saw unknown, expected number
    !! Controller config file passed by steamworks game 570 did not exist at /home/akikyo/.local/share/Steam/SteamApps/common/dota 2 beta/dota/cfg/controller.vdf
    Installing breakpad exception handler for appid(steam)/version(1405474565_client)
    [0725/222707:ERROR:object_proxy.cc(239)] Failed to call method: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.NetworkManager was not provided by any .service files
    [0725/222707:WARNING:proxy_service.cc(958)] PAC support disabled because there is no system implementation
    Im not able to run ETS 2 it's going to change resolution to 1024x768 in whole desktop and then crash. (Launch option: optirun -b primus %command%) output:
    Game update: AppID 227300 "Euro Truck Simulator 2", ProcID 1554, IP 0.0.0.0:0
    ERROR: ld.so: object '/home/akikyo/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
    ERROR: ld.so: object '/home/akikyo/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
    (steam:1358): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
    (steam:1358): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
    (steam:1358): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
    (steam:1358): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
    (steam:1358): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
    (steam:1358): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
    (steam:1358): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
    (steam:1358): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
    (steam:1358): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
    (steam:1358): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
    (steam:1358): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
    (steam:1358): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
    (steam:1358): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
    (steam:1358): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
    ERROR: ld.so: object '/home/akikyo/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
    Setting breakpad minidump AppID = 227300
    Steam_SetMinidumpSteamID: Caching Steam ID: 76561198074650116 [API loaded no]
    Registered appid 227300 to use native controller config at /home/akikyo/.local/share/Steam/SteamApps/common/Euro Truck Simulator 2/controller.vdf
    X Error of failed request: GLXUnsupportedPrivateRequest
    Major opcode of failed request: 155 (GLX)
    Minor opcode of failed request: 16 (X_GLXVendorPrivate)
    Serial number of failed request: 80
    Current serial number in output stream: 82
    Game removed: AppID 227300 "Euro Truck Simulator 2", ProcID 1567
    sudo journalctl
    Jul 25 22:35:15 lenovo bumblebeed[396]: [ 891.508930] [WARN][XORG] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
    Jul 25 22:35:15 lenovo bumblebeed[396]: [ 891.508943] [WARN][XORG] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
    Jul 25 22:35:15 lenovo bumblebeed[396]: [ 891.508969] [WARN][XORG] (WW) Unresolved symbol: fbGetGCPrivateKey
    Jul 25 22:35:15 lenovo bumblebeed[396]: [ 891.508984] [WARN][XORG] (WW) NVIDIA(0): Unable to get display device for DPI computation.
    Jul 25 22:35:16 lenovo kernel: eurotrucks2[1567]: segfault at 17 ip 00007f40f1e30433 sp 00007fff05479db0 error 6 in steamclient.so[7f40f1b66000+f7b000]
    Jul 25 22:35:16 lenovo kernel: [drm] Module unloaded
    Jul 25 22:35:16 lenovo kernel: bbswitch: disabling discrete graphics
    Jul 25 22:35:16 lenovo kernel: ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20140214/nsarguments-95)
    Jul 25 22:35:16 lenovo kernel: pci 0000:01:00.0: Refused to change power state, currently in D0
    Jul 25 22:35:17 lenovo bumblebeed[396]: [ 892.838215] [ERROR][XORG] (EE) Server terminated successfully (0). Closing log file.
    Jul 25 22:35:17 lenovo bumblebeed[396]: [ 892.838233] [ERROR][XORG] (EE)
    Jul 25 22:35:17 lenovo bumblebeed[396]: [ 892.838238] [ERROR][XORG] (EE) Backtrace:
    Jul 25 22:35:17 lenovo bumblebeed[396]: [ 892.838242] [ERROR][XORG] (EE) 0: Xorg (xorg_backtrace+0x56) [0x58f186]
    Jul 25 22:35:17 lenovo bumblebeed[396]: [ 892.838245] [ERROR][XORG] (EE) 1: Xorg (0x400000+0x192fc9) [0x592fc9]
    Jul 25 22:35:17 lenovo bumblebeed[396]: [ 892.838249] [ERROR][XORG] (EE) 2: /usr/lib/libpthread.so.0 (0x7fd21c5c8000+0xf4b0) [0x7fd21c5d74b0]
    Jul 25 22:35:17 lenovo bumblebeed[396]: [ 892.838256] [ERROR][XORG] (EE) 3: /usr/lib/libc.so.6 (malloc_usable_size+0x25) [0x7fd21b290d25]
    Jul 25 22:35:17 lenovo bumblebeed[396]: [ 892.838272] [ERROR][XORG] (EE) 4: /usr/lib/nvidia/libGL.so.1 (0x7fd21818b000+0xb61d9) [0x7fd2182411d9]
    Jul 25 22:35:17 lenovo bumblebeed[396]: [ 892.838286] [ERROR][XORG] (EE)
    Jul 25 22:35:17 lenovo bumblebeed[396]: [ 892.838298] [ERROR][XORG] (EE) Segmentation fault at address 0x0
    Jul 25 22:35:17 lenovo bumblebeed[396]: [ 892.838306] [ERROR][XORG] (EE)
    Jul 25 22:35:17 lenovo bumblebeed[396]: [ 892.838317] [ERROR][XORG] (EE) Caught signal 11 (Segmentation fault). Server aborting
    Jul 25 22:35:17 lenovo bumblebeed[396]: [ 892.838320] [ERROR][XORG] (EE)
    Jul 25 22:35:17 lenovo bumblebeed[396]: [ 892.838323] [ERROR][XORG] (EE)
    Jul 25 22:35:17 lenovo bumblebeed[396]: [ 892.838329] [ERROR][XORG] (EE) Please also check the log file at "/var/log/Xorg.8.log" for additional information.
    Jul 25 22:35:17 lenovo bumblebeed[396]: [ 892.838334] [ERROR][XORG] (EE)
    sudo nano /var/log/Xorg.8.log
    X.Org X Server 1.15.2
    Release Date: 2014-06-27
    [ 887.399] X Protocol Version 11, Revision 0
    [ 887.399] Build Operating System: Linux 3.15.1-1-ARCH x86_64
    [ 887.399] Current Operating System: Linux lenovo 3.15.5-2-ARCH #1 SMP PREEMPT Fri Jul 11 07:56:02 CEST 2014 x86_64
    [ 887.399] Kernel command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=a89135f9-ef1e-4b90-a073-ee78d492b58a rw rcutree.rcu_idle_gp_delay=1 quiet
    [ 887.399] Build Date: 27 June 2014 07:32:26PM
    [ 887.399]
    [ 887.399] Current version of pixman: 0.32.6
    [ 887.399] Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
    [ 887.399] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
    [ 887.399] (==) Log file: "/var/log/Xorg.8.log", Time: Fri Jul 25 22:35:11 2014
    [ 887.400] (++) Using config file: "/etc/bumblebee/xorg.conf.nvidia"
    [ 887.400] (++) Using config directory: "/etc/bumblebee/xorg.conf.d"
    [ 887.400] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
    [ 887.400] (==) ServerLayout "Layout0"
    [ 887.400] (==) No screen section available. Using defaults.
    [ 887.400] (**) |-->Screen "Default Screen Section" (0)
    [ 887.400] (**) | |-->Monitor "<default monitor>"
    [ 887.400] (==) No device specified for screen "Default Screen Section".
    Using the first device section listed.
    [ 887.400] (**) | |-->Device "DiscreteNvidia"
    [ 887.400] (==) No monitor specified for screen "Default Screen Section".
    Using a default monitor configuration.
    [ 887.400] (**) Option "AutoAddDevices" "false"
    [ 887.400] (**) Option "AutoAddGPU" "false"
    [ 887.400] (**) Not automatically adding devices
    [ 887.400] (==) Automatically enabling devices
    [ 887.400] (**) Not automatically adding GPU devices
    [ 887.401] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
    [ 887.401] Entry deleted from font path.
    [ 887.401] (Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
    [ 887.401] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
    [ 887.401] Entry deleted from font path.
    [ 887.401] (Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
    [ 887.401] (==) FontPath set to:
    /usr/share/fonts/misc/,
    /usr/share/fonts/TTF/,
    /usr/share/fonts/OTF/,
    /usr/share/fonts/Type1/
    [ 887.401] (++) ModulePath set to "/usr/lib/nvidia/xorg/,/usr/lib/xorg/modules"
    [ 887.401] (==) |-->Input Device "<default pointer>"
    [ 887.401] (==) |-->Input Device "<default keyboard>"
    [ 887.401] (==) The core pointer device wasn't specified explicitly in the layout.
    Using the default mouse configuration.
    [ 887.401] (==) The core keyboard device wasn't specified explicitly in the layout.
    Using the default keyboard configuration.
    [ 887.401] (II) Loader magic: 0x811cc0
    [ 887.401] (II) Module ABI versions:
    [ 887.401] X.Org ANSI C Emulation: 0.4
    [ 887.401] X.Org Video Driver: 15.0
    [ 887.401] X.Org XInput driver : 20.0
    [ 887.401] X.Org Server Extension : 8.0
    [ 887.401] (II) xfree86: Adding drm device (/dev/dri/card1)
    [ 887.401] (II) xfree86: Adding drm device (/dev/dri/card0)
    [ 887.401] setversion 1.4 failed: Permission denied
    [ 887.403] (--) PCI:*(0:1:0:0) 10de:0fd4:17aa:3977 rev 161, Mem @ 0xd2000000/16777216, 0xc0000000/268435456, 0xd0000000/33554432, I/O @ 0x00003000/128
    [ 887.403] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
    [ 887.403] Initializing built-in extension Generic Event Extension
    [ 887.404] Initializing built-in extension SHAPE
    [ 887.404] Initializing built-in extension MIT-SHM
    [ 887.404] Initializing built-in extension XInputExtension
    [ 887.404] Initializing built-in extension XTEST
    [ 887.404] Initializing built-in extension BIG-REQUESTS
    [ 887.404] Initializing built-in extension SYNC
    [ 887.404] Initializing built-in extension XKEYBOARD
    [ 887.404] Initializing built-in extension XC-MISC
    [ 887.404] Initializing built-in extension SECURITY
    [ 887.404] Initializing built-in extension XINERAMA
    [ 887.404] Initializing built-in extension XFIXES
    [ 887.404] Initializing built-in extension RENDER
    [ 887.404] Initializing built-in extension RANDR
    [ 887.404] Initializing built-in extension COMPOSITE
    [ 887.404] Initializing built-in extension DAMAGE
    [ 887.404] Initializing built-in extension MIT-SCREEN-SAVER
    [ 887.404] Initializing built-in extension DOUBLE-BUFFER
    [ 887.404] Initializing built-in extension RECORD
    [ 887.404] Initializing built-in extension DPMS
    [ 887.404] Initializing built-in extension Present
    [ 887.404] Initializing built-in extension DRI3
    [ 887.404] Initializing built-in extension X-Resource
    [ 887.404] Initializing built-in extension XVideo
    [ 887.404] Initializing built-in extension XVideo-MotionCompensation
    [ 887.404] Initializing built-in extension XFree86-VidModeExtension
    [ 887.404] Initializing built-in extension XFree86-DGA
    [ 887.404] Initializing built-in extension XFree86-DRI
    [ 887.404] Initializing built-in extension DRI2
    [ 887.404] (II) "glx" will be loaded by default.
    [ 887.404] (II) LoadModule: "dri2"
    [ 887.404] (II) Module "dri2" already built-in
    [ 887.404] (II) LoadModule: "glamoregl"
    [ 887.404] (II) Loading /usr/lib/xorg/modules/libglamoregl.so
    [ 887.454] (II) Module glamoregl: vendor="X.Org Foundation"
    [ 887.454] compiled for 1.15.0, module version = 0.6.0
    [ 887.454] ABI class: X.Org ANSI C Emulation, version 0.4
    [ 887.454] (II) LoadModule: "glx"
    [ 887.454] (II) Loading /usr/lib/nvidia/xorg/modules/extensions/libglx.so
    [ 887.495] (II) Module glx: vendor="NVIDIA Corporation"
    [ 887.495] compiled for 4.0.2, module version = 1.0.0
    [ 887.495] Module class: X.Org Server Extension
    [ 887.495] (II) NVIDIA GLX Module 340.24 Wed Jul 2 15:04:31 PDT 2014
    [ 887.495] Loading extension GLX
    [ 887.495] (II) LoadModule: "nvidia"
    [ 887.495] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
    [ 887.500] (II) Module nvidia: vendor="NVIDIA Corporation"
    [ 887.500] compiled for 4.0.2, module version = 1.0.0
    [ 887.500] Module class: X.Org Video Driver
    [ 887.500] (II) LoadModule: "mouse"
    [ 887.500] (II) Loading /usr/lib/xorg/modules/input/mouse_drv.so
    [ 887.502] (II) Module mouse: vendor="X.Org Foundation"
    [ 887.502] compiled for 1.15.0, module version = 1.9.0
    [ 887.502] Module class: X.Org XInput Driver
    [ 887.502] ABI class: X.Org XInput driver, version 20.0
    [ 887.502] (II) LoadModule: "kbd"
    [ 887.502] (WW) Warning, couldn't open module kbd
    [ 887.502] (II) UnloadModule: "kbd"
    [ 887.502] (II) Unloading kbd
    [ 887.502] (EE) Failed to load module "kbd" (module does not exist, 0)
    [ 887.502] (II) NVIDIA dlloader X Driver 340.24 Wed Jul 2 14:42:23 PDT 2014
    [ 887.502] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
    [ 887.502] (--) using VT number 1
    [ 887.502] (II) Loading sub module "fb"
    [ 887.502] (II) LoadModule: "fb"
    [ 887.502] (II) Loading /usr/lib/xorg/modules/libfb.so
    [ 887.504] (II) Module fb: vendor="X.Org Foundation"
    [ 887.504] compiled for 1.15.2, module version = 1.0.0
    [ 887.504] ABI class: X.Org ANSI C Emulation, version 0.4
    [ 887.504] (WW) Unresolved symbol: fbGetGCPrivateKey
    [ 887.504] (II) Loading sub module "wfb"
    [ 887.504] (II) LoadModule: "wfb"
    [ 887.504] (II) Loading /usr/lib/xorg/modules/libwfb.so
    [ 887.506] (II) Module wfb: vendor="X.Org Foundation"
    [ 887.506] compiled for 1.15.2, module version = 1.0.0
    [ 887.506] ABI class: X.Org ANSI C Emulation, version 0.4
    [ 887.506] (II) Loading sub module "ramdac"
    [ 887.506] (II) LoadModule: "ramdac"
    [ 887.506] (II) Module "ramdac" already built-in
    [ 887.506] (II) NVIDIA(0): Creating default Display subsection in Screen section
    "Default Screen Section" for depth/fbbpp 24/32
    [ 887.506] (==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
    [ 887.506] (==) NVIDIA(0): RGB weight 888
    [ 887.506] (==) NVIDIA(0): Default visual is TrueColor
    [ 887.506] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
    [ 887.506] (**) NVIDIA(0): Option "NoLogo" "true"
    [ 887.506] (**) NVIDIA(0): Option "ProbeAllGpus" "false"
    [ 887.507] (**) NVIDIA(0): Option "UseEDID" "false"
    [ 887.507] (**) NVIDIA(0): Option "UseDisplayDevice" "none"
    [ 887.507] (**) NVIDIA(0): Enabling 2D acceleration
    [ 887.507] (**) NVIDIA(0): Ignoring EDIDs
    [ 887.507] (**) NVIDIA(0): Option "UseDisplayDevice" set to "none"; enabling NoScanout
    [ 887.507] (**) NVIDIA(0): mode
    [ 891.006] (II) NVIDIA(GPU-0): Found DRM driver nvidia-drm (20130102)
    [ 891.008] (II) NVIDIA(0): NVIDIA GPU GeForce GTX 660M (GK107) at PCI:1:0:0 (GPU-0)
    [ 891.008] (--) NVIDIA(0): Memory: 2097152 kBytes
    [ 891.008] (--) NVIDIA(0): VideoBIOS: 80.07.3c.00.16
    [ 891.008] (II) NVIDIA(0): Detected PCI Express Link width: 16X
    [ 891.008] (--) NVIDIA(0): Valid display device(s) on GeForce GTX 660M at PCI:1:0:0
    [ 891.008] (--) NVIDIA(0): none
    [ 891.008] (II) NVIDIA(0): Validated MetaModes:
    [ 891.008] (II) NVIDIA(0): "NULL"
    [ 891.008] (II) NVIDIA(0): Virtual screen size determined to be 640 x 480
    [ 891.008] (WW) NVIDIA(0): Unable to get display device for DPI computation.
    [ 891.008] (==) NVIDIA(0): DPI set to (75, 75); computed from built-in default
    [ 891.008] (--) Depth 24 pixmap format is 32 bpp
    [ 891.008] (II) NVIDIA: Using 3072.00 MB of virtual memory for indirect memory
    [ 891.008] (II) NVIDIA: access.
    [ 891.013] (II) NVIDIA(0): ACPI: failed to connect to the ACPI event daemon; the daemon
    [ 891.013] (II) NVIDIA(0): may not be running or the "AcpidSocketPath" X
    [ 891.013] (II) NVIDIA(0): configuration option may not be set correctly. When the
    [ 891.013] (II) NVIDIA(0): ACPI event daemon is available, the NVIDIA X driver will
    [ 891.013] (II) NVIDIA(0): try to use it to receive ACPI event notifications. For
    [ 891.013] (II) NVIDIA(0): details, please see the "ConnectToAcpid" and
    [ 891.013] (II) NVIDIA(0): "AcpidSocketPath" X configuration options in Appendix B: X
    [ 891.013] (II) NVIDIA(0): Config Options in the README.
    [ 891.013] (II) NVIDIA(0): Setting mode "NULL"
    [ 891.028] Loading extension NV-GLX
    [ 891.035] (==) NVIDIA(0): Disabling shared memory pixmaps
    [ 891.035] (==) NVIDIA(0): Backing store enabled
    [ 891.035] (==) NVIDIA(0): Silken mouse enabled
    [ 891.035] (==) NVIDIA(0): DPMS enabled
    [ 891.035] Loading extension NV-CONTROL
    [ 891.036] (II) Loading sub module "dri2"
    [ 891.036] (II) LoadModule: "dri2"
    [ 891.036] (II) Module "dri2" already built-in
    [ 891.036] (II) NVIDIA(0): [DRI2] Setup complete
    [ 891.036] (II) NVIDIA(0): [DRI2] VDPAU driver: nvidia
    [ 891.036] (--) RandR disabled
    [ 891.044] (II) Initializing extension GLX
    [ 891.100] (II) Using input driver 'mouse' for '<default pointer>'
    [ 891.100] (**) Option "CorePointer" "on"
    [ 891.100] (**) <default pointer>: always reports core events
    [ 891.100] (WW) <default pointer>: No Device specified, looking for one...
    [ 891.146] (II) <default pointer>: Setting Device option to "/dev/input/mice"
    [ 891.146] (--) <default pointer>: Device: "/dev/input/mice"
    [ 891.146] (==) <default pointer>: Protocol: "Auto"
    [ 891.146] (**) <default pointer>: always reports core events
    [ 891.146] (**) Option "Device" "/dev/input/mice"
    [ 891.200] (==) <default pointer>: Emulate3Buttons, Emulate3Timeout: 50
    [ 891.200] (**) <default pointer>: ZAxisMapping: buttons 4 and 5
    [ 891.200] (**) <default pointer>: Buttons: 9
    [ 891.200] (II) XINPUT: Adding extended input device "<default pointer>" (type: MOUSE, id 6)
    [ 891.200] (**) <default pointer>: (accel) keeping acceleration scheme 1
    [ 891.200] (**) <default pointer>: (accel) acceleration profile 0
    [ 891.200] (**) <default pointer>: (accel) acceleration factor: 2.000
    [ 891.200] (**) <default pointer>: (accel) acceleration threshold: 4
    [ 891.200] (II) <default pointer>: Setting mouse protocol to "ExplorerPS/2"
    [ 891.493] (II) <default pointer>: ps2EnableDataReporting: succeeded
    [ 891.493] (II) LoadModule: "kbd"
    [ 891.494] (WW) Warning, couldn't open module kbd
    [ 891.494] (II) UnloadModule: "kbd"
    [ 891.494] (II) Unloading kbd
    [ 891.494] (EE) Failed to load module "kbd" (module does not exist, 0)
    [ 891.494] (EE) No input driver matching `kbd'
    [ 891.497] (II) config/udev: Adding input device Power Button (/dev/input/event3)
    [ 891.497] (II) AutoAddDevices is off - not adding device.
    [ 891.497] (II) config/udev: Adding input device Video Bus (/dev/input/event5)
    [ 891.497] (II) AutoAddDevices is off - not adding device.
    [ 891.497] (II) config/udev: Adding input device Power Button (/dev/input/event0)
    [ 891.497] (II) AutoAddDevices is off - not adding device.
    [ 891.498] (II) config/udev: Adding input device Sleep Button (/dev/input/event1)
    [ 891.498] (II) AutoAddDevices is off - not adding device.
    [ 891.498] (II) config/udev: Adding input device Video Bus (/dev/input/event4)
    [ 891.498] (II) AutoAddDevices is off - not adding device.
    [ 891.498] (II) config/udev: Adding input device Lid Switch (/dev/input/event2)
    [ 891.498] (II) AutoAddDevices is off - not adding device.
    [ 891.499] (II) config/udev: Adding drm device (/dev/dri/card1)
    [ 891.499] (II) config/udev: Adding drm device (/dev/dri/card0)
    [ 891.499] (II) xfree86: Adding drm device (/dev/dri/card0)
    [ 891.499] setversion 1.4 failed: Permission denied
    [ 891.499] (II) config/udev: Adding input device Logitech USB Optical Mouse (/dev/input/event7)
    [ 891.499] (II) AutoAddDevices is off - not adding device.
    [ 891.500] (II) config/udev: Adding input device Logitech USB Optical Mouse (/dev/input/mouse0)
    [ 891.500] (II) AutoAddDevices is off - not adding device.
    [ 891.500] (II) config/udev: Adding input device CHESEN USB Keyboard (/dev/input/event8)
    [ 891.500] (II) AutoAddDevices is off - not adding device.
    [ 891.501] (II) config/udev: Adding input device CHESEN USB Keyboard (/dev/input/event9)
    [ 891.501] (II) AutoAddDevices is off - not adding device.
    [ 891.501] (II) config/udev: Adding input device HDA Digital PCBeep (/dev/input/event12)
    [ 891.501] (II) AutoAddDevices is off - not adding device.
    [ 891.501] (II) config/udev: Adding input device HDA Intel PCH Mic (/dev/input/event13)
    [ 891.501] (II) AutoAddDevices is off - not adding device.
    [ 891.502] (II) config/udev: Adding input device HDA Intel PCH Headphone (/dev/input/event14)
    [ 891.502] (II) AutoAddDevices is off - not adding device.
    [ 891.502] (II) config/udev: Adding input device HDA Intel PCH HDMI/DP,pcm=3 (/dev/input/event15)
    [ 891.502] (II) AutoAddDevices is off - not adding device.
    [ 891.502] (II) config/udev: Adding input device Lenovo EasyCamera (/dev/input/event16)
    [ 891.502] (II) AutoAddDevices is off - not adding device.
    [ 891.503] (II) config/udev: Adding input device Ideapad extra buttons (/dev/input/event10)
    [ 891.503] (II) AutoAddDevices is off - not adding device.
    [ 891.503] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event6)
    [ 891.503] (II) AutoAddDevices is off - not adding device.
    [ 891.503] (II) config/udev: Adding input device SynPS/2 Synaptics TouchPad (/dev/input/event17)
    [ 891.504] (II) AutoAddDevices is off - not adding device.
    [ 891.504] (II) config/udev: Adding input device SynPS/2 Synaptics TouchPad (/dev/input/mouse1)
    [ 891.504] (II) AutoAddDevices is off - not adding device.
    [ 891.504] (II) config/udev: Adding input device PC Speaker (/dev/input/event11)
    [ 891.504] (II) AutoAddDevices is off - not adding device.
    [ 892.695] (II) UnloadModule: "mouse"
    [ 892.720] (II) NVIDIA(GPU-0): Deleting GPU-0
    [ 892.723] (EE) Server terminated successfully (0). Closing log file.
    Last edited by Akikyo (2014-07-24 21:04:45)

    I can't be sure but most of the dota2 output looks "normal" to me (I get the same yet it works fine).
    eurotrucks is clearly crashing. You could try to force the resolution it uses in its config files?
    Or maybe it's missing a lib (you may need to install 32bit versions):
    ldd /path/to/eurotrucks
    to see if that's the case. If not, you might have to take it up with the eurotrucks developers.
    And you could try using fluxbox/openbox just to see what happens. A lot lighter than KDE.
    Have a good look though: https://wiki.archlinux.org/index.php/Steam
    and remember to check for missing 32bit libs.

Maybe you are looking for