title: Parse XML with single id and multiple values - Android
body: <pre><code>String var = "&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;current func = "123" name="lllo" add="pol" ..... /&gt;";
  </code></pre>
  
  <p>getting this xml need to get the values stored in this xml </p>
  
  <p>I have tried xmlparser to get valeus
  as </p>
  
  <pre><code>    String func= 123;
      String name = lllo;
  ..........
  </code></pre>
  
  <p>How can be possible? need help</p>
  
  <p>Updated : I tried this getting null:</p>
  
  <pre><code>XmlPullParserFactory factory = XmlPullParserFactory.newInstance();
  XmlPullParser pullParser = factory.newPullParser();
  InputStream is =
          new ByteArrayInputStream(newString.getBytes());
  pullParser.setInput(is, "UTF-8");
  
  String min = pullParser.getAttributeValue(null, "uid");
  String max = pullParser.getAttributeValue(null, "name");
  Toast.makeText(getApplicationContext(), ":" + min, Toast.LENGTH_LONG).show();
  System.out.println(":" + min + "" + max);
  </code></pre>