smack - xml to packet
hi everyone!

i have a string xml message ( presence message in this case) . i want convert this string in a presence object.

is this possible?

thanks in advance.
this is done in the smack testcases quite frequently. you can look at the parsebasicitem test case as an example.

this does use a testing utility class that is not part of the smack or smackx jars, but you can easily duplicate that if you need to.
You could look at LINQ to XML. I use it all the time to read XML files and parse them.



<http://msdn.microsoft.com/en-us/library/bb387098.aspx>



If this is for an assignment, I'll leave the actual DAL building up to you, but LINQ to XML will provide you the mechanisms for reading the XML file and generating objects you require. yes using a jsonata expression

[{"id":"9f82063c.c6daf","type":"change","z":"4484ee28.caa3c","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"$count(msg.payload) + 1","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":440,"y":460,"wires":[["269a25ff.79887a"]]}]… can you be a little more precise ? does your send message work corretctly if sent from main procedure ? if yes do you uses qmhsndpm ? who is the receiver (call stack entry) (I suppose it’s ‘*’) ? what level in the stack (call stack count)(I suppose it’s 2 ) ?





A message subfile displays the messages from a program message queue — that’s what they’re for. Normally, they’re linked to the name of the program that displays the message subfile (i.e., displays the display file).


Send a message to the program message queue that’s associated with the message subfile.


Tom Hi Romain, 

  
  
You can use HTML formatting this way:

  
  

```
  
sender = scenario.get_message_sender(channel_id="my_channel_id")   
sender.set_params(sender="dss@company.com",   
                recipient="your.email@company.com",   
                sendAsHTML=True)  
                  
html_message="<b>All is good</b>"  
  
sender.send(subject="The scenario is doing well",   
            message=html_message)
```
  
  
 




[View solution in original post](/t5/Using-Dataiku/Is-it-possible-to-send-custom-reports-as-HTML/m-p/2194#M1517) not [full disclosure] a linux person per se.

something similar to the following should work:

https://www.unix.com/shell-programming-and-scripting/68166-converting-integer-string.html

start simple with just enough code to test the concept.

see if it works and modify/correct as necessary.

then if it still does not work, then post your documented code accordingly along an explanation of what is or is not happening as you expect or desire. Here is a sample of traversing a simple xml structure

 
```
    Dim myxml = <root>
                    <level id="1">
                        <prop n="PROPERTY" v="VALUE"/>
                    </level>
                    <level id="2">
                        <prop n="PROPERTY" v="VALUE"/>
                    </level>
                </root>

    For Each level In myxml.Elements
        Debug.WriteLine("id=" & level.@id.ToString)
        For Each prop In level.Elements
            Debug.WriteLine("n=" & prop.@n.ToString & "  v=" & prop.@v.ToString)
        Next
    Next

``` yes, you can using a module.

you might have seen examples of module where a only a symbol is given, e.g. from the docs:

data = mx.sym.variable('data')

fc1 = mx.sym.fullyconnected(data, name='fc1', num\_hidden=128)

act1 = mx.sym.activation(fc1, name='relu1', act\_type="relu")

fc2 = mx.sym.fullyconn… An SMTP connector, in this case, won’t help you since all those connectors do is route SMTP mail. If your ISP is using Exchange, ask them to use EXMERGE to pull out all of the emails for your people, and then use EXMERGE to put those PST files into the correct user’s Exchange mailbox. If your ISP is using some other mail server, then I’m going to assume you are connecting them via POP3 or IMAP. You can easily take the PST used for these types of accounts and use EXMERGE to put the data in those PST files into their Exchange mailbox for them. However, you will want to make sure your ISP is forwarding new mail to your new Exchange server, and have your users synch up their email before you EXMERGE their PST into Exchange to ensure all of their email is download and present in the PST. hi [@ashish.tyagi](/u/ashish.tyagi), hope below solution will work for you

assign

var\_int\_count = list\_mailmessages.where(function(x) convert.todatetime(x.date).tostring(“dd/mm/yyyy”)=date.now.tostring(“dd/mm/yyyy”)).count [image] palaniyappan:

hi

welcome to uipath community

yah ofcourse

we can use send smtp mail activity or send outlook mail activity or send exchange mail activity to send the mail with screenshot image file, where in attach file option we can mention the file path of the image we took using ta…