0

i get <CreateRoom Name='room nam' Mode='2v2/single' Players='4/10'/> as a TCP socket call and i want to parse and get the tags. I solved it with strip, replace and startsWith But is there a easier way or a correct way to extract the tags?

Thanks in advance.

1 Answer 1

1

You can regard it as XML and use frameworks such as dom4j to parse it.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.