skip to Main Content

Xpath 1.0 Mysql issue

I have this sample xml <ProductSaleItem> <ItemReference>100</ItemReference> <Discount> <Modifier>1</Modifier> </Discount> </ProductSaleItem> <ProductSaleItem> <ItemReference>101</ItemReference> <Discount> <Modifier>1</Modifier> </Discount> <Discount> <Modifier>2</Modifier> </Discount> </ProductSaleItem> <ProductSaleItem> <ItemReference>102</ItemReference> </ProductSaleItem> and this xpath //ProductSaleItem[Discount/Modifier]/ItemReference i am hoping to get 100 101 but all i get is 100…

VIEW QUESTION

Html – XPath for labeled data?

I want to read the data which is inside the second div: <div class="my-3"> <div class="d-flex justify-content-between">Monthly:</div> <div>0 / 30,000</div> </div> In the above markup, I want to read the div which contains the string: 0 / 30,000 I was…

VIEW QUESTION

Javascript – Empty data getting posted in Mongodb database using Node JS html

How to slove this problem Please help me const express=require("express"); const app=express(); const bodyparser=require("body-parser"); const cors=require("cors"); const mongoose=require("mongoose"); const PORT=4000; app.use(cors()); app.use(express.urlencoded({extended:false})); app.use(express.json()); app.use(bodyparser.urlencoded({extended:true})); const URL='mongodb+srv://username:[email protected]/UserDB'; const userSchema=new mongoose.Schema({ name:{ type:String }, password:{ type:String } }); const UserModel= mongoose.model("userData",userSchema); app.get("/",(req,res)=>{…

VIEW QUESTION

Html – XPath to target first ancestor tag

Some HTML: <div> <div> <button> <svg xmlns="http://www.w3.org/2000/svg"> <path d="x" /> </svg> </button> </div> <div> <button> <!-- I want this --> <svg xmlns="http://www.w3.org/2000/svg"> <path d="y" /> <!-- I have this --> </svg> </button> </div> </div> I have the data (y) to…

VIEW QUESTION
Back To Top
Search